TAGGED: scripting, spaceclaim
-
-
February 17, 2022 at 2:40 pmhermanSubscriber
I'm able to check if a custom property is present. But how to add a custom component property and a document component property in Python Scripting?
if not document.CustomProperties.ContainsKey("KeyName"):
document.CustomProperties.Add("KeyName", "TEST")gives an error, though Add pops up in intellicense.
-
February 17, 2022 at 2:48 pmSubashni RavichandranForum Moderator
Hello Herman Moors
Are you using Discovery SpaceClaim or the new Discovery?
-
February 18, 2022 at 5:23 amhermanSubscriber
Hello Subashni
I'am using Spaceclaim
-
February 21, 2022 at 2:22 pmSubashni RavichandranForum Moderator
Hello Herman Moors
Let me check with my team and get back to you.
-
February 25, 2022 at 8:28 amSubashni RavichandranForum Moderator
Hello Herman Moors
The commands in the screenshot shared should work with API 21.2 version.
Is there any specific property you are looking to add? Please let me know what properties you would like so that I can check with my team on the specific code for that.
-
- The topic ‘How to add a CustomProperty (Component / Document) in Scripting’ is closed to new replies.
- 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
- plugin error failed to import assembly from spaceclaim
- Overlapping contact face
- Thermoelectric Cooler Model
- Issue Seeing Explore
- Warning Plugin Error Geometry in Design Modeler
- SpaceClaim stops sharing topology
-
1406
-
599
-
591
-
555
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.