jet Posted September 6, 2012 Share Posted September 6, 2012 I have imported a SHP file, with loads of polygons. IE Zoning areas. Now I want to label each polygon, i can see the information in the data tab, how do i automatically place a label on the drawing from the data? I am sure i have done this before, but do you think i can figure it out! Jim B.C. Canada 15" Macbook pro, 2.2 i7, 4GB ram Mac OS 10.7.2 VectorWorks Designer 2011 VectorWorks Designer 2011 SP5 Quote Link to comment
jet Posted September 6, 2012 Author Share Posted September 6, 2012 No ideas out there? I have a ton of polygons that i am going to have to label manually! Also all the contours for this project come in (shp files) with a data value for height. How can i label the lines i.e. 101m. Is there a way to convert these to actual 3d poly lines (with an elevation) jim Quote Link to comment
Vectorworks, Inc Employee JuanCarlos Posted January 9, 2013 Vectorworks, Inc Employee Share Posted January 9, 2013 To convert 2d contours from shp files you can use this script { ///////// Convert Contour Polylines and polygons imported from a GIS ShapeFile to 3D Polys and set height from Record Elevation, assumes Record Field for height to called ELEV /////// © 2012 Nemetschek Vectorworks. Distribute freely. (*jcf*) /////////////} PROCEDURE GISContoursTo3DPolys; {main} PROCEDURE my_polyline(H:HANDLE); VAR My_Poly: HANDLE; BEGIN My_Poly := ConvertTo3DPolys(H); END; PROCEDURE My_Height(H:HANDLE); VAR HT:REAL; BEGIN HT := Str2Num(GetRField(H,GetName(GetRecord(H,1)),'ELEV')); HT := HT*12; Move3DObj(H,0,0,HT); END; BEGIN foreachobject(HUngroup,T=GROUP); foreachobject(my_polyline,T in [POLYLINE,POLY]); foreachobject(HUngroup,T=GROUP); foreachobject(My_Height,T=POLY3D); END; Run (GISContoursTo3DPolys) ; Quote Link to comment
jet Posted October 7, 2013 Author Share Posted October 7, 2013 not a solution for zone polygons, i have hundreds of city lots and i want the zone label to be dynamic, linked to the zone field. So if we change the zone, the label changes... any more ideas? Jim B.C. Canada 15" Macbook pro, 2.2 i7, 16GB ram Mac OS 10.8.5 VectorWorks Designer 2014 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.