Jump to content
Sign in to follow this  
Nigel @ Hallam Garden Desi

Problem producing 3D contours from imported data

Recommended Posts

Here's the process I've gone through:

1 Imported DWG file

2 Converted polyline contours to polygons

3 Entered relevant data in 2D polys to 3D contour dialogue box & click OK

4 When Set Elevation dialogue box appears - all contours disappear

5 Click Next button - one, seemingly random poly has been converted & I get the final dialogue box asking me if I'd like to delete the original 2D polygons. The net result is that only one 3D contour has been produced.

- any suggestions?

Share this post


Link to post

Trick ... copy a couple of those polys to a new file then export as Vectorscript. Open the export with a text editor and take a look at the {Object Creation Code} coordinates. They must be in the form 'x,y,z'. here's the correct syntax for 3D Locus creation:

NameObject('1');Locus3D(5000,5000,100);

Record(LNewObj,'SURVEY');

Field(LNewObj,'SURVEY','ELEV','100');

Field(LNewObj,'SURVEY','DESCRIPTION','nls');

FPatByClass;

FillColorByClass;

LSByClass;

PenColorByClass;

LWByClass;

MarkerByClass;

Share this post


Link to post

Thank you islandmon - I'm afraid my expertise doesn't run to interpreting Vectorscript, but here's what it is:

{Object Creation Code}

Marker(0,0.444458,15);

NameClass('contours');

LSByClass;

PenColorByClass;

LWByClass;

FillPat(0);

FillFore(48059,48059,48059);

FillBack(48059,48059,48059);

Poly(

20.367266665892018,-8.427288888402076,

18.993157893907394,-11.368289472908405,

21.280883720457247,-12.892046510710014,

22.479617020317487,-14.384297871749437,

26.382275861191726,-17.59920689605714,

29.407026314864567,-16.068684209780773,

31.006674417858402,-16.327209301469804,

31.936566036790449,-16.041471697715657

);

Suffice to say that the conversion from 2D polys to 3D contours is not working - I've tried it out on a number of imported files and always get the same problem.

Can anybody help?

Share this post


Link to post

The {Object Creation Code } for the Poly(....); lacks a Z value. Hence no 3d contours. There must be 3 strings one for each value X,Y,Z,

Neat trick , hey. Now just go and add some Z values ... and watch what happens.

FYI :

Record(LNewObj,'SURVEY');

Field(LNewObj,'SURVEY','ELEV','100');

Field(LNewObj,'SURVEY','DESCRIPTION','nls');

Represents Record= 'SURVEY' with Field= 'Description ' = 'nls'

Share this post


Link to post
Guest

Nigel,

The best thing to do is import the DWG using the 3D only settings.

By importing 2D and 3D, the default view items are what gets imported - this means everything comes in as 2D.

As long as the items are 3D in the DWG file, you shouldn't have to do much work other than line cleanup.

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.

×