Home
Reply
sho
Visitor
Posts: 2
0
Accepted Solution

Naming STEP export subpart

Hi all, 

 

I created a model with several bodies and then performed a STEP export. The export using ACIS doesn't name the subparts nicely : it just applies a default numbering naming convention such as :

  •  subpart 1 name --> 1
  •  subpart 2 name --> 2
  • ...

When you import the output step into a CAD softwares (SW, SE,...) subpart names are not nice. I would like to know if it possible to change the default naming convention by using for instance  '{ assembly name }_ {subpart number}'. Some other CAD kernels do this by default.

 

I have linked in the discussion what I am getting and what I would like to get.

 

Thanks for your help.

Spatial Employee
Posts: 22
0

Re: Naming STEP export subpart

The STEP exporter uses an attribute on the ACIS geometry to get the name for a body to be written to the STEP file, this will be named on the MANIFOLD_SOLID_BREP object in the STEP file.  The name of the attribute on the ACIS BODY is ATTRIB_XACIS_NAME and the value is the string for the name you wish to give the BODY.  If there is no such attribute the the exporter will assign a default name.

 

You can try this in scheme, say on a block:

 

(define a (solid:block 0 0 0 10 20 30 ))

(generic:add a "ATTRIB_XACIS_NAME" "BODY_NAME")

 

Or if you are using C++ then you can use api_add_generic_named_attribute.

 

Highlighted
sho
Visitor
Posts: 2
0

Re: Naming STEP export subpart

Thanks a lot, I have tested it and it works.

 

So easy, it saved me time.

 

Regards, 

 

Sébastien