Area of an Object

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by Davinci Davinci 2 weeks, 3 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20190
    Davinci
    Davinci
    Participant

    Hello,

    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.

    Thanks

     

    0
    #20198
    Avatar
    CaptainFeature
    Participant

    Hy Davinci,

    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?

    Best Regards

    Feature

    0
    #20201
    Davinci
    Davinci
    Participant

    Hi Feature,

     

    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”

    regards

    Vinci

    0
    #20212
    Avatar
    CaptainFeature
    Participant

    Hy,

    do you have an example component?

    BR

    Feature

    0
    #20222
    Davinci
    Davinci
    Participant

    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?

    wr

    Vinci

    0
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.