Example Code

Example Code

Anonymous
Not applicable
326 Views
1 Reply
Message 1 of 2

Example Code

Anonymous
Not applicable
I'm new to ObjectARX and was wondering if anyone could help me find some
example code? I'm particularlly interested in extracting polyline vertex
data to a text file?
0 Likes
327 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
"David Hubble" wrote in message
news:[email protected]...
> I'm new to ObjectARX and was wondering if anyone could help me find some
> example code? I'm particularlly interested in extracting polyline vertex
> data to a text file?

suggestions

1) create an autocad extension (arx) project
2) create a command (with the wizard)

3) make user pick an object with acedEntSel
4) open object with AcDbObjectPointer
5) make sure it's a polyline with object->isA()->name() == "AcDbPolyline"
6) open as polyline with AcDbObjectPointer
7) what's left is trivial, see AcDbPolyline documentation
8) build, load, run command

there are a few more lines of code to type of course 😉

maybe you can try without testing for polyline [4), 5)] and see if it was
opened successfuly, I'm not sure.

Igor
0 Likes