TAGGED: index, Moderator SpaceClaim, scripting, spaceclaim
-
-
September 18, 2024 at 7:47 pmShyam Prasad V AtriSubscriber
Hey
I am trying to import multiple curves but I keep getting this errorÂ
name 'FileSettings1' is not defined
Stack Trace:
Document:"New Script (1)", Line:4So what happens is if I import one curve once and then I put the rest of the curve in the script then it will execute. but if I open a fresh file and try to import a new curve just by running the script I get this error. please let me know how to get away from this
-
September 19, 2024 at 6:57 amAtharv JoshiForum ModeratorHi Shyam,ÂÂLet me check this and get back to you.ÂÂRegardsAtharv
-
September 19, 2024 at 7:38 amAtharv JoshiForum Moderator
You can import the geometry using the following method.Â
Use DocumentOpen method and specify the file name and path.For eg:
importOptions = ImportOptions.Create()
DocumentOpen.Execute(r"C:\TEST_CURVE.scdoc", importOptions)RegardsAtharv -
September 19, 2024 at 7:48 amAtharv JoshiForum Moderator
I think you have used Smart Variable selection to record the script for importing the files.Â
Smart variables such as 'FileSettings1' is not pre-defined in a new session so you can face errors.
You can switch to index selection based approach to record the initial code and later modify as required.ÂRegardsAtharv
-
- The topic ‘Space claim scripting FileSetting problem’ is closed to new replies.
- Data Center Simulation
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- Crash by using Script Editor
- plugin error failed to import assembly from spaceclaim
- Overlapping contact face
- Temperature’s Distribution not available in Refine Mode ?
- Thermoelectric Cooler Model
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.