Jump to content

Annotate SHP data


jet

Recommended Posts

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

Link to comment

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

Link to comment
  • 4 months later...
  • Vectorworks, Inc Employee

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) ;

Link to comment
  • 8 months later...

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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...