AutoCAD VBA - Convert arc to lines
AutoCAD VBA - Convert arc to lines
(OP)
Hi,
I am searching for the
b-rep subroutine that Acad uses to display the arc and circles, by
segmenting them according to their length.
Can anyone help me?
I am searching for the
b-rep subroutine that Acad uses to display the arc and circles, by
segmenting them according to their length.
Can anyone help me?





RE: AutoCAD VBA - Convert arc to lines
Think your a little bit advanced for trying that.. did you try to use vb-forums? I find answers there regarding to programming...
sorry I can't help you.
Heyner
RE: AutoCAD VBA - Convert arc to lines
RE: AutoCAD VBA - Convert arc to lines
RE: AutoCAD VBA - Convert arc to lines
RE: AutoCAD VBA - Convert arc to lines
RE: AutoCAD VBA - Convert arc to lines
Arc group codes:
10 Center point (in OCS). DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of center point (in OCS)
40 Radius
50 Start angle
51 End angle
Lwpolyline group codes:
10 Vertex coordinates (in WCS), multiple entries; one entry for each vertex. DXF: X value; APP: 2D point
20 DXF: Y value of vertex coordinates (in WCS), multiple entries; one entry for each vertex
90 Number of vertices.
128 = plinegen
There also is a lisp routine called "Circle2Pline" by Jason Piercey that converts circles to polylines using lwpolines. What it does is change a circle to a polyine, and then you will later be able to change the width of the line (you cannot change the width of a circle, and you do not have to use the donut command.
It does not work on circles, but you may want to study it and it might lead you to some ideas for your routine.
Flores
RE: AutoCAD VBA - Convert arc to lines
Are you trying to make a flat layout of
a multi curved object? It might help if
we knew your reason.
RE: AutoCAD VBA - Convert arc to lines
diamondjim, basically i want to convert the arc,circle,spile to lines so i can use the endpoint and startpoint X,Y,Z cordinates for some calculations.
RE: AutoCAD VBA - Convert arc to lines
Didn't want to leave you hanging. It can be written in LISP if you want. Does not sound especially hard. Contact me if you want to do something with it.
pilpro@bright.net