Reply

Macro for bounding box

I need a macro to define the bounding box of my parts, and insert the values for beeing used in BOM.

 

Is there anything?

Tiago
6 REPLIES

Re: Macro for bounding box

In the past, i developed a macro for CATIA that do it. And it worked really fine.

If I change the part the bounding box updated. In Catia I used a formula that measures the distance between a plane and the partbody, all of this inserted in a macro. Is it possible to do this formula in SE.

Thanks
Tiago

Re: Macro for bounding box

Does anyone have tried this, or have any idea of how to do it?

Tiago

Re: Macro for bounding box

See this post: (Get max dimensions of parts)

https://community.plm.automation.siemens.com/t5/Solid-Edge-Developer-Forum/GetRange-and-GetExactRang...

 

To create a bounding box:

https://community.plm.automation.siemens.com/t5/Solid-Edge-Developer-Forum/Is-it-possible-to-create-...

 

To create a bill of materials with API:

https://www.youtube.com/watch?v=9uVeU9q-C18

 

To insert the maximum dimensions in the BOM you need to create custom properties with the values of the maximum dimensions.



==========================
Kabir Costa
Industrial Designer
kabircosta@gmail.com

Re: Macro for bounding box

Hi 

 

 

 

You can use the workinig macro MainDim which will be found on my homepage and I will copy it here too.

 

This indeed does a lot more but also - if nothing else is wanted or defined - creates the range box of a part and writes it into the property table

 

 

The explanations in the xml files should help You for a proper setup.

Everything can be defined within those 2 files

 



regards
Wolfgang

Re: Macro for bounding box

Many thanks, it looks really good.
Tiago

Re: Macro for bounding box

Hi @TiagoFigueiredo

 

 

 

fine to hear that.

If there are any questions regarding how to use it, please don't hesitate to ask.

 

I hope that my explanations in the XML files are understandable and useful.

 

The basic idea behind that macro was to offer the possibility defining variables, dimensions for main dimensions as proeprties in a 3D docuemnt used by BOm, title block and so on.

 

If there are no dims defined as main dimensions, the surounding block is used as x,y,z main dim.

 

 



regards
Wolfgang