TAGGED: index, Moderator SpaceClaim, scripting, spaceclaim
-
-
September 18, 2024 at 7:47 pmShyam Prasad V AtriBbp_participant
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
-
- You must be logged in to reply to this topic.
-
421
-
192
-
178
-
162
-
140
© 2024 Copyright ANSYS, Inc. All rights reserved.