Jump to content
JakeSliv

Rotating hybid objects.

Recommended Posts

I've got 60 hybrid objects (pipe shaped) crossing at a single point. I need to rotate them in space relative to the center point in all planes to fill the sphere in a random pattern.

Is there a shortcut for that?

Thanks

Jake

Share this post


Link to post

I've got 60 hybrid objects (pipe shaped) crossing at a single point. I need to rotate them in space relative to the center point in all planes to fill the sphere in a random pattern.

Is there a shortcut for that?

Thanks

Jake

Share this post


Link to post

Hybrid Objects can only be rotated in plan view (around the Z axis, so that only the X and Y values change).

 

If you really need to rotate them in 3D, you will need to use pure 3D objects.

 

I don't know of any short cuts in VW to do what you are asking. If this is a one time project I would just do it manually. If this is something that you will have to do repeatedly, then it might be worth looking at a script or Marionette.

 

Are all the objects Identical?

Share this post


Link to post

As Pat mentioned, Hybrid objects cannot be rotated off the ground plane.  They can only be rotated around the Z axis.

If that's all you need, one of these scripts should do it for you.

 

This script will rotate selected objects about their centers (center of their bounding box):

PROCEDURE MAIN;
FUNCTION RotateIt(h :HANDLE) :BOOLEAN;
VAR
    x, y, ang :REAL;
BEGIN
    HCenter( h, x, y );
    ang := Random * 360;
    HRotate( h, x, y, ang );
END;
    
BEGIN
    ForEachObjectInLayer(RotateIt, 2, 0, 4);
END;
RUN(MAIN);

 

This script will rotate selected symbols and plug-in objects about their insertion point:

PROCEDURE MAIN;
FUNCTION RotateIt(h :HANDLE) :BOOLEAN;
VAR
    x, y, ang :REAL;
BEGIN
    GetSymLoc( h, x, y );
    ang := Random * 360;
    HRotate( h, x, y, ang );
END;
    
BEGIN
    ForEachObjectInLayer(RotateIt, 2, 0, 4);
END;
RUN(MAIN);

 

 

Share this post


Link to post

Thanks for your help!

These are indeed hybrids, because they consist of a pipe with a lightbulb at each end and they should be rotated in two planes, so I get what resembles a sphere.

Jake.

Edited by JakeSliv

Share this post


Link to post

If they are hybrid objects in the Vectorworks sense of the word meaning they have different representations in 3D view and Top/Plan view (think walls, doors, windows, Spotlight lighting instruments and truss objects), then you will not be able to rotate the objects except around the z-axis.

 

If they are hybrid in the sense that they are multiple objects combined together (group or symbol), but each individual piece is in 3D, then you will be able to accomplish what you want.

 

 

Share this post


Link to post

I see. Thanks Pat!

Does that mean, that if I delete the 2D representation from a symbol it will be possible to rotate it?

J

Share this post


Link to post

Note further: if you place 2D elements on the 'layer plane' rather than 'screen plane' so that they are considered 3D you can include things like text, dimensions, hatches that are technically 2D.

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

 

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.

×