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.
- FSAE CFD – Lesson 1 Preparation question (Using Discovery)
- Project lines/edges into a face with the direction normal to the face
- Script for subtracting models
- Multiple Instances of SpaceClaim taking multiple licenses
- No preview in explorer with scdox file
- Spaceclaim file reference error
- Issues after installing new service pack 2024R1 (sp5)
- Add-in Error Excel
- Problems with loading my Discovery Mesh into Fluent
- Missing SubDivWrapper.dll
-
3872
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.