Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My goal is to find a way to differentiate whether a parcel loop item is a line or an arc.
If I dump the object, I get either IAeccParcelSegmentCurve or IAeccParcelSegmentLine. I can't find a way to get that value into a variable.
So, I thought it would be simple. If the object is a curve, it has a radius. I ask the object (setq rad (vlax-get seg 'Radius))
That works fine when the object is a curve. If it's a line, it gives an error, which I expect it to do. What I would like to do is (setq rad nil) if the original setq rad throws an error.
I am struggling.
Thanks in advance.
Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller
New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Solved! Go to Solution.