3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Spaceclaim Parameters

    • Fabian Scr
      Subscriber

      Is 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.

    • NickFL
      Subscriber

      Yes 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.