TAGGED: scripting, spaceclaim
-
-
February 17, 2022 at 2:40 pm
herman
SubscriberI'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 pm
Subashni Ravichandran
Forum ModeratorHello Herman Moors
Are you using Discovery SpaceClaim or the new Discovery?
-
February 18, 2022 at 5:23 am
herman
SubscriberHello Subashni
I'am using Spaceclaim
-
February 21, 2022 at 2:22 pm
Subashni Ravichandran
Forum ModeratorHello Herman Moors
Let me check with my team and get back to you.
-
February 25, 2022 at 8:28 am
Subashni Ravichandran
Forum ModeratorHello 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.
-
3064
-
971
-
905
-
858
-
792
© 2025 Copyright ANSYS, Inc. All rights reserved.