AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

placing a BLOCK in the xyz coord of a POINT

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
293 Views, 5 Replies

placing a BLOCK in the xyz coord of a POINT

Is it possible to place a BLOCK in the xyz coord of a POINT?
Which is the correct query?

This is my problem:
I've got to Z place a lot of blocks representing trees. Their elevation is
zero, now.
Above these blocks I've got points placed in the correct Z position (where
the blocks must placed).
How can I do?

I tried a lot of queries but without results.
I'm thinking to create a buffer around the points, intersect the points with
the buffer and catch the elevation object data, create a plygonal topology
with the blocks....
I think there's a shortest way using Map.
Thanks in advance
Paolo
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Depending on how much experience you have in AutoCAD and srcipts/list.
Run a report query on the points getting the X,Y, & Z values, then write a
script to insert the tree blocks at those points. If you have different
blocks for different type of trees you will need to do it a little bit
different but that's the way I would do it.

Murph
(I refer lisp/script over creating 2 or three topolgies and bloating a dwg
with extra data that might not be used again.)


"Paolo" wrote in message
news:49FF4BCCB64F7D97D6910EB8214E67F5@in.WebX.maYIadrTaRb...
> Is it possible to place a BLOCK in the xyz coord of a POINT?
> Which is the correct query?
>
> This is my problem:
> I've got to Z place a lot of blocks representing trees. Their elevation is
> zero, now.
> Above these blocks I've got points placed in the correct Z position (where
> the blocks must placed).
> How can I do?
>
> I tried a lot of queries but without results.
> I'm thinking to create a buffer around the points, intersect the points
with
> the buffer and catch the elevation object data, create a plygonal topology
> with the blocks....
> I think there's a shortest way using Map.
> Thanks in advance
> Paolo
>
>
Message 3 of 6
Anonymous
in reply to: Anonymous

Hello Murph, Paolo.

Just to add to this a little...
Instead of a writing a script, you could use the ASCPOINT.lsp routine, that
_used_ to come with AutoCAD... but can now be d'loaded from Tony T's site
(www.caddzone.com).

Also, I was wondering...
Could you use Map to Export the point data (shp, e00, mif/mid), then
re-import and specify a block to use? The only issue would be is I don't
think Map exports the z coord, elevation?

Just some thoughts

Warren M


"Murph" wrote in message
news:4D4CE6881D7E987C70A8A17256A81B29@in.WebX.maYIadrTaRb...
> Depending on how much experience you have in AutoCAD and srcipts/list.
> Run a report query on the points getting the X,Y, & Z values, then write a
> script to insert the tree blocks at those points. If you have different
> blocks for different type of trees you will need to do it a little bit
> different but that's the way I would do it.
>
> Murph
> (I refer lisp/script over creating 2 or three topolgies and bloating a dwg
> with extra data that might not be used again.)
>
>
> "Paolo" wrote in message
> news:49FF4BCCB64F7D97D6910EB8214E67F5@in.WebX.maYIadrTaRb...
> > Is it possible to place a BLOCK in the xyz coord of a POINT?
> > Which is the correct query?
> >
> > This is my problem:
> > I've got to Z place a lot of blocks representing trees. Their elevation
is
> > zero, now.
> > Above these blocks I've got points placed in the correct Z position
(where
> > the blocks must placed).
> > How can I do?
> >
> > I tried a lot of queries but without results.
> > I'm thinking to create a buffer around the points, intersect the points
> with
> > the buffer and catch the elevation object data, create a plygonal
topology
> > with the blocks....
> > I think there's a shortest way using Map.
> > Thanks in advance
> > Paolo
> >
> >
>
>
Message 4 of 6
Anonymous
in reply to: Anonymous

Further to this...
Just tried this out...

You would need to do it in 3 steps...

1) Export the point data, including the ELEVATION property.
2) Import the data, creating Object Data from the ELEVATION attribute. Save
this dwg.
3) Attach above dwg performing an Alter Proprty query to set ELEVATION based
on O.D. value...

Hmmm, lot of steps for something that should be sooo easy... 😉

Warren M


"Warren Medernach" wrote in message
news:4D20C63C900D1FF16F7DD0DC6F58ACDD@in.WebX.maYIadrTaRb...
> Hello Murph, Paolo.
>
> Just to add to this a little...
> Instead of a writing a script, you could use the ASCPOINT.lsp routine,
that
> _used_ to come with AutoCAD... but can now be d'loaded from Tony T's site
> (www.caddzone.com).
>
> Also, I was wondering...
> Could you use Map to Export the point data (shp, e00, mif/mid), then
> re-import and specify a block to use? The only issue would be is I don't
> think Map exports the z coord, elevation?
>
> Just some thoughts
>
> Warren M
>
>
> "Murph" wrote in message
> news:4D4CE6881D7E987C70A8A17256A81B29@in.WebX.maYIadrTaRb...
> > Depending on how much experience you have in AutoCAD and srcipts/list.
> > Run a report query on the points getting the X,Y, & Z values, then write
a
> > script to insert the tree blocks at those points. If you have different
> > blocks for different type of trees you will need to do it a little bit
> > different but that's the way I would do it.
> >
> > Murph
> > (I refer lisp/script over creating 2 or three topolgies and bloating a
dwg
> > with extra data that might not be used again.)
> >
> >
> > "Paolo" wrote in message
> > news:49FF4BCCB64F7D97D6910EB8214E67F5@in.WebX.maYIadrTaRb...
> > > Is it possible to place a BLOCK in the xyz coord of a POINT?
> > > Which is the correct query?
> > >
> > > This is my problem:
> > > I've got to Z place a lot of blocks representing trees. Their
elevation
> is
> > > zero, now.
> > > Above these blocks I've got points placed in the correct Z position
> (where
> > > the blocks must placed).
> > > How can I do?
> > >
> > > I tried a lot of queries but without results.
> > > I'm thinking to create a buffer around the points, intersect the
points
> > with
> > > the buffer and catch the elevation object data, create a plygonal
> topology
> > > with the blocks....
> > > I think there's a shortest way using Map.
> > > Thanks in advance
> > > Paolo
> > >
> > >
> >
> >
>
>
Message 5 of 6
Anonymous
in reply to: Anonymous

Are the x and y coordinates of the block and the corresponding point exactly
the same?
If so this should be a fairly simple lisp routine to find the correct point
and move the block.

"Paolo" wrote in message
news:49FF4BCCB64F7D97D6910EB8214E67F5@in.WebX.maYIadrTaRb...
> Is it possible to place a BLOCK in the xyz coord of a POINT?
> Which is the correct query?
>
> This is my problem:
> I've got to Z place a lot of blocks representing trees. Their elevation is
> zero, now.
> Above these blocks I've got points placed in the correct Z position (where
> the blocks must placed).
> How can I do?
>
> I tried a lot of queries but without results.
> I'm thinking to create a buffer around the points, intersect the points
with
> the buffer and catch the elevation object data, create a plygonal topology
> with the blocks....
> I think there's a shortest way using Map.
> Thanks in advance
> Paolo
>
>
Message 6 of 6
Anonymous
in reply to: Anonymous

Thank you very much to everybody!
It works!
Each one of you gave me an input to get the target and I did it without
scripts.
This is what I did:
I exported x,y,z and block attributes (TREE HEIGHT and TREE NAME.....so I
can query them) in txt format. I converted it in shp format in Arcview. I
drapped it on the DEM and exported in 3D shape file.
I re-imported the 3D shape file in Map specifying a block (thanks
Warren...this was the missing piece!) and the object data table.
Now I've got what I needed:
blocks in the correct x,y,z position with all the object datas associated.
Now I can query them and substitute different type of trees'3Dblock in
function of TREE HEIGHT and TREE NAME.
Thanks again to everybody!
Paolo


"Jim Claypool" ha scritto nel messaggio
news:4BC5EC759EA3D687B02A0FEE2BBC58CD@in.WebX.maYIadrTaRb...
> Are the x and y coordinates of the block and the corresponding point
exactly
> the same?

YES, x,y coord are the same.
I did it in this way: I exported them in shp format,

> If so this should be a fairly simple lisp routine to find the correct
point
> and move the block.
>
> "Paolo" wrote in message
> news:49FF4BCCB64F7D97D6910EB8214E67F5@in.WebX.maYIadrTaRb...
> > Is it possible to place a BLOCK in the xyz coord of a POINT?
> > Which is the correct query?
> >
> > This is my problem:
> > I've got to Z place a lot of blocks representing trees. Their elevation
is
> > zero, now.
> > Above these blocks I've got points placed in the correct Z position
(where
> > the blocks must placed).
> > How can I do?
> >
> > I tried a lot of queries but without results.
> > I'm thinking to create a buffer around the points, intersect the points
> with
> > the buffer and catch the elevation object data, create a plygonal
topology
> > with the blocks....
> > I think there's a shortest way using Map.
> > Thanks in advance
> > Paolo
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost