-
-
November 14, 2025 at 9:12 pm
Fabian Scr
SubscriberIs it possible in SpaceClaim to use the property fields (or custom properties) for parameterization? For example, if the file name is '100', the length of the geometry becomes '100', and so on.
-
November 17, 2025 at 10:12 am
NickFL
SubscriberYes I suppose you could, but it seems a little backwards because we usually create the model then save. But in theory you could use SpaceClaim python scripting to do something like this:
# Python Script, API Version = V23
import re
# File Called dummy_100_mm.scdoc
fileName = DocumentHelper.GetActiveDocument()
fileName = fileName.Path
q = re.search(‘_(.+?)_mm’, fileName)
q = q.group(1)
print(q)You could then use the quantity q in your model.
-
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Innovation Space
Trending discussions
- Project lines/edges into a face with the direction normal to the face
- No preview in explorer with scdox file
- Issues after installing new service pack 2024R1 (sp5)
- Add-in Error Excel
- Problems with loading my Discovery Mesh into Fluent
- Missing SubDivWrapper.dll
- Fileformats
- Discovery 2025r2 failed to initialize
- Spaceclaim problem
- Using SpaceClaim scripts vs recorded blocks for parametric optimization workflow
Top Contributors
-
4207
-
1493
-
1375
-
1197
-
1021
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.