Jump to content
Developer Wiki and Function Reference Links ×

3d Points


lostboy

Recommended Posts

I have been trying to figure this one out for a while. I'm trying to pull data out of Vectorworks, initially wall data.

I need the 3d co-ordinates of all external points of a wall. I have figured out a few methods to use, such as Get2dPt(), which will give me the start and end, and I can get the height to figure a few things out.

This doesn't help me when the panel is an odd shape, and not rectangular, which would be quite common.

I have searched through the Function Reference a few times, and have been unable to find anything to give me this data.

Link to comment

Try this neat trick ... just write a script to do this :

1) Create a WALL

2) Convert it into 3dPolys

3) Export Vectorscript

here's the result for a Wall duplicated & converted:

{Object Creation Code}

NameClass('None');

SetZVals(0",5'0");

DoubLines(1'0.000000000000002");

ClearCavities;

PenSize(1);

PenPat(2);

AddCavity(FALSE,0",0",0);

AddCavity(FALSE,0",0",0);

FillPat(1);

PenFore(0,0,0);

PenBack(65535,65535,65535);

FillFore(0,0,0);

FillBack(65535,65535,65535);

Wall(0",0",10'0",0");

WallCap(FALSE,TRUE,FALSE,0",0");

WallCap(TRUE,TRUE,FALSE,0",0");

{the 3dPoly data of interest }

BeginGroup;

ClosePoly;

Poly3D(

0",10'6.000000000000002",0",

10'0",10'6.000000000000002",0",

10'0",9'6.000000000000002",0",

0",9'6.000000000000002",0"

);

Poly3D(

0",10'6.000000000000002",5'0",

0",10'6.000000000000002",0",

0",9'6.000000000000002",0",

0",9'6.000000000000002",5'0"

);

Poly3D(

10'0",10'6.000000000000002",0",

10'0",10'6.000000000000002",5'0",

10'0",9'6.000000000000002",5'0",

10'0",9'6.000000000000002",0"

);

Poly3D(

10'0",9'6.000000000000002",0",

10'0",9'6.000000000000002",5'0",

0",9'6.000000000000002",5'0",

0",9'6.000000000000002",0"

);

Poly3D(

0",10'6.000000000000002",0",

0",10'6.000000000000002",5'0",

10'0",10'6.000000000000002",5'0",

10'0",10'6.000000000000002",0"

);

Poly3D(

10'0",10'6.000000000000002",5'0",

0",10'6.000000000000002",5'0",

0",9'6.000000000000002",5'0",

10'0",9'6.000000000000002",5'0"

);

EndGroup;

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...