Jump to content
Sign in to follow this  
Dexie

DTM / spot heights

Recommended Posts

I have a digital topographic survey in 2D which has spot heights in meters but with no Z value. Is there a script available to read the value of each spot height, and insert a 3D locus at the insertion point of the text object with the correct Z value.

I am using Landmark.

I don't really want to insert them manually and give them a Z value.

Share this post


Link to post

If you can't find freeware, ask your distributor to ask Ultirender. There is such a script in the Finnish localisation.

Share this post


Link to post

No that doesn't work there is no external survey data.

The data for the 3D loci is just in a number of text box in the drawing itself.

Share this post


Link to post

Are they 3D loci, located at the proper points in space, or 2D loci with a Z value in text? Or something else (two crossed lines)?

Share this post


Link to post

Dexie, making the transition from static to dynamic requires direct access to the original data ... either from the CAD programmer , the Surveyor, or in the worst case... someone ...probably you... copying out the text and pasting into a tab delimited XYZ txt format .

Then VW can use the "Import Survey' script to import the XYZ ( or YXZ, northing-easting-elevation ) into a DTM Layer for you to manipulate in 3d.

Share this post


Link to post

A generic DTM data generation script - as the one mentioned above - may also fail if the programmer has not anticipated the notation used. Surveyors are a suprisingly imaginative group of people!

A particularly nasty and practically impossible notation is one where there is a cross and two separate text items, like full metres on the left, decimal part on the right.

Share this post


Link to post

My reading of this is that we have a 2d plan view with some sort of text object centered on the correct x/y coordinates, and the Z info contained in the text.

Dexie: Is my understanding of your file correct, and is there anything else in the text objects other than the Z value?

So if somebody had the time, they might make a script that stepped thru each text object, recorded it's X&Y in the drawing, read the Z number from that object and wrote all that to a delimited file which then could be read by Inport Survey. An automation of what imon mentioned.

Might be easier than scripting that plus the drawing part.

If I wasn't so mired in trouble-shooting a couple of my ancient scripts I might give it a go.

Best of luck

Charles

Share this post


Link to post

That exactly right. The Z heigth is depicted in text and the xy coordinate is at the text box insertion box.

A script to perform the repetative task would be an idea work around.

If anyone has the time or unlike me the knowledge.

The thing I like about this forum is that people are so helpful an there is always someone who comes up with a solution on another way of approaching a problem.

Share this post


Link to post

this vectorscript will do what you want but I will caution you .. it ain't pretty

PROCEDURE Example;

FUNCTION text2stake(h :HANDLE) :BOOLEAN;VAR???r, g, b :LONGINT;

p1X, p1Y, p2X, p2Y ,p2Z:REAL; NewStake:HANDLE;

Objtext:STRING;

BEGIN

if GetType(h)=10 then begin

Objtext:=GetText(h);

p2z:=Str2Num(Objtext);

GetBBox(h,p1X, p1Y, p2X, p2Y );

NewStake:=CreateCustomObjectN('Stake Object',p2x,p2y,0,False);

SetRField(NewStake,'Stake Object','Mode', 'Include as site model data');

SetRField(NewStake,'Stake Object','Style', 'Triangle');

SetRField(NewStake,'Stake Object','Scale Factor', '1');

Move3DObj(NewStake,0,0,p2z);

END;

END;???

BEGIN???

ForEachObjectInLayer(text2stake, 2, 0, 0);

END;

RUN(Example);

Share this post


Link to post

I will give this a try.

Thanks for spending the time to help.

Many thanks.

Share this post


Link to post

Thanks dspearman, I've got same problem as Dexie and your script (with slight modifications) did the trick! I was trying to create worksheet with DB row displaying X, Y values (via =XCENTER, =YCENTER, before that I had to adjust text alignment properties to center/center) but were out of any luck finding how to get that text content to be shown for Z value. After I would have exported worksheet and imported as survey data.

I didn't know the site model can be made from objects other (stake) than mentioned in help (Import Survey File, 2D Polys to 3D Contours, 3D Polys to 3D Loci (Landmark only), and Grid Method Entry).

What else was weird that I found this thread using google with "text z value site:techboard.nemetschek.net" query, because local searching engine has limitations for minimal text length. NNA - improve your search engine, please!

Share this post


Link to post

This is an old post, but it just made my life a whole lot easier with an old ongoing project.

Thank you dsspearman.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×