ARX to trace the outline of an ofice chair

ARX to trace the outline of an ofice chair

Anonymous
Not applicable
905 Views
9 Replies
Message 1 of 10

ARX to trace the outline of an ofice chair

Anonymous
Not applicable
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
906 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
How is the chair drawn?

Solids, 3dfaces etc



"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 3 of 10

Anonymous
Not applicable
You can use AcDbEntity::getGeomExtents( ) to get the bounding box, if you're
just looking for a footprint (you can just remove the Z component to get the
2D rectangle). If you're looking for a more detailed 2D representation, it
will depend on what type of objects make up the chair.

-Rich


"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 4 of 10

Anonymous
Not applicable
The chairs are made up of 3d faces.

"Matt"
wrote in message
news:[email protected]...
How is the chair drawn?

Solids, 3dfaces etc



"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 5 of 10

Anonymous
Not applicable
It needs to be more detailed. Chairs are made up of 3D faces

"Justavian" wrote in message
news:[email protected]...
You can use AcDbEntity::getGeomExtents( ) to get the bounding box, if you're
just looking for a footprint (you can just remove the Z component to get the
2D rectangle). If you're looking for a more detailed 2D representation, it
will depend on what type of objects make up the chair.

-Rich


"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 6 of 10

Anonymous
Not applicable
Collect all the faces
Iterate the vertices, one 3dface at the time, and create a bunch of
AcGePolyLines
Project them using AcGeCurve3d::project.

That leaves you with a couple of GeEntities to try to clean up
And then create AcDbEntities.

Must be a smarter way. But this might work







"Jon Prisbe" wrote in message
news:[email protected]...
The chairs are made up of 3d faces.

"Matt"
wrote in message
news:[email protected]...
How is the chair drawn?

Solids, 3dfaces etc



"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 7 of 10

Anonymous
Not applicable
Check out the hidden line api samples in ObjectArx/utils/HlrApi. That with the proper view should give you a much better 2d result.

Chris Arps
0 Likes
Message 8 of 10

Anonymous
Not applicable
Thanks,

I try your suggestons.

jon


"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 9 of 10

Anonymous
Not applicable
I have a routine that takes 3D objects (by selection) and projects them onto
a selected plane. To project onto the XY plane just loop through the
selection set, iterate through the vertices of the faces and set their Z
coordinates to zero. If you want to keep the originals, just create new
ones whose Z coordinates you modify.



"Matt"
wrote in message
news:[email protected]...
Collect all the faces
Iterate the vertices, one 3dface at the time, and create a bunch of
AcGePolyLines
Project them using AcGeCurve3d::project.

That leaves you with a couple of GeEntities to try to clean up
And then create AcDbEntities.

Must be a smarter way. But this might work







"Jon Prisbe" wrote in message
news:[email protected]...
The chairs are made up of 3d faces.

"Matt"
wrote in message
news:[email protected]...
How is the chair drawn?

Solids, 3dfaces etc



"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes
Message 10 of 10

Anonymous
Not applicable
I have written a similar routine.

I am executing the hide command to hide some faces, iterating the vertices
of the remaining faces and changing the z values to zero. Then I compare
edges and discard any that are identical in length and location (to
eliminate lines inside the perimeter).

This works pretty well, but sometimes my trace is not as smooth as I'd like
it.




"Ed DePaola" wrote in message
news:[email protected]...
I have a routine that takes 3D objects (by selection) and projects them onto
a selected plane. To project onto the XY plane just loop through the
selection set, iterate through the vertices of the faces and set their Z
coordinates to zero. If you want to keep the originals, just create new
ones whose Z coordinates you modify.



"Matt"
wrote in message
news:[email protected]...
Collect all the faces
Iterate the vertices, one 3dface at the time, and create a bunch of
AcGePolyLines
Project them using AcGeCurve3d::project.

That leaves you with a couple of GeEntities to try to clean up
And then create AcDbEntities.

Must be a smarter way. But this might work







"Jon Prisbe" wrote in message
news:[email protected]...
The chairs are made up of 3d faces.

"Matt"
wrote in message
news:[email protected]...
How is the chair drawn?

Solids, 3dfaces etc



"Jon Prisbe" wrote in message
news:[email protected]...
I have a request to write an arx that would look at the top view of a 3D
desk chair
and trace along the perimeter to create a 2D view of the same chair.

Is there any utility that currently does such a thing? or
is there functionality in AutoCAD to do this? or
any suggestions on how I should go about this?

Any ideas/suggestions would be appreciated.

Thanks,

Jon
0 Likes