Tagged: Python API
- 10/01/2020 at 13:23 #20190
I am trying to create a property by using Python API where it should show the area of the Component. If I import a CAD model the area of the CAD Model that I imported should be visible when it is in §D environment. I am trying to find a way to do so. Can somebody help me with this?
I am thinking to do this from the position matrix where I can calculate the points and the area from it. Or suggest me some other ways.
Thanks010/01/2020 at 13:34 #20198
look in VC-Help for “vcNode”, there are some Properties like “BoundCenter” and “BoundDiagonal”.
In combination with positionMatrix you should be able to solve it?
Feature010/01/2020 at 14:02 #20201
Thanks for your suggestion. If I can create four nodes that bounds the area then from the Position of the nodes I might calculate the area.
or please suggest me how I can solve this “Area of an Object”
Vinci010/01/2020 at 16:10 #20212
do you have an example component?
Feature010/01/2020 at 17:46 #20222
Unfortunately I don’t have one.
But for example if we consider a Cube or Cylinder or a Cone , how to find the area of this Component by using Python API. Are there any Methods existing to achieve this?
You must be logged in to reply to this topic.