Personal tools
You are here: Home Forum Use Using a Second Shape in a Group Edition Script (TUI)

Using a Second Shape in a Group Edition Script (TUI)

Up to Use

Using a Second Shape in a Group Edition Script (TUI)

Posted by William Tougeron at April 18. 2013

Hi,

I would like to know if their is a short way to make in a Python script something similar to enabling the Main Shape Selection Restriction in the GUI group creation/edition dialogue box. I mean using a Second Shape (like in the enclosed screenshot).

I have searched in the documentation but I couldn't find it.

My today solution is to use my own function to detect objects having the same shape comparing their basic properties, mass centers and inertia matrices, but this solution is neither clean nor fast.

Can someone help me do this correctly?

Thank you very much,

Best regards,

William

Attachments

Re: Using a Second Shape in a Group Edition Script (TUI)

Posted by Saint Michael at April 18. 2013

Hi William

"Geometrical parts of the second shape" corresponds to geompy.GetInPlace(self, theShapeWhere, theShapeWhat).

"Only sub-shapes of the second shape" corresponds to geompy.GetSharedShapes(self, theShape1, theShape2, theShapeType)

St.Michael

Re: Using a Second Shape in a Group Edition Script (TUI)

Posted by William Tougeron at April 24. 2013

Hi Saint Michael

Thank you very much and sorry for the last response :)

Best regards,

William

Re: Using a Second Shape in a Group Edition Script (TUI)

Posted by William Tougeron at April 24. 2013

"late" response (not last)...

Powered by Ploneboard
Document Actions