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.
- Project lines/edges into a face with the direction normal to the face
- No preview in explorer with scdox file
- Add-in Error Excel
- Inconsistent Script
- MISSING SIMULATION SECTION/RIBBONTAP
- Unable to attach to geometry file 2025R2
- How would I select specific components and all bodies under it?
- Mesh tool questions SpaceClaim
-
4643
-
1540
-
1386
-
1225
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.