×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

API: Get (correct) arc normals from sketch?

API: Get (correct) arc normals from sketch?

API: Get (correct) arc normals from sketch?

(OP)
Ive been using a routine for a while that works well, using GetPolyLines5 to extract all the lines/arcs/polys/splines, etc from a drawing VIEW. No problem here.

But Im attempting to now do similar with a 'block' object.
It seems I have to get the SKETCH Object (instead of the View object) from the BlockReference, which doesnt allow me to use the generic GetPolyLines5 (which returns all lines,arcs, etc) and instead, make separate calls using the "GetLines2" and "GetArcs2", etc, API calls.

First thing I noticed was that docs seemed wrong; 'GetLines2' states 7 items per line enitity, it worked correctly with 12 items. 'GetArcs2' states 12 items per enitity, while 16 is what worked.

But the problem here is the 'normal' for the arc; GetPolyLines5 always returned the X,Y,and Z normals, and seemed to do it correctly, while 'GetArcs2' seems to only return the Z Normal, and it seems to always be set to '1', even when I added arcs that could NOT be represented in a CCW fashion using a normal of "1" ...

Is there anything Im missing?

RE: API: Get (correct) arc normals from sketch?

An arc is, by definition, a planar entity.  A plane can be expressed with a single normal.  Perhaps this is the value you are getting for the normal.

Gravity is a harsh mistress.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources