Jump to content
michaelk

Subtract Solid = 20

Recommended Posts

What does "Bad Input" mean as a return for a subtract solid?

 

I'm trying to subtract solids in a parametric object.  If I ungroup the parametric object and subtract the solids they work fine.  But in the script they return 20.

 

Any ideas?

Share this post


Link to post

Have you verified your handles are correct inside the PIO? Without seeing any code that is my only guess.

 

Raymond

Share this post


Link to post

Yep.  I even made unique handle variables.  I started by drawing two solids and subtracting them and then exporting the script, just to make sure I was doing it right.  

 

SubtractSolid(bigObject,smallObject,subtractedObject) returns 20.  (Bad input).  

 

I'm now trying to work around the subtraction.  If it doesn't work I'll go back and get the subtraction code and post it.

Share this post


Link to post

So, what types are the objects? 

 

Place this just before or after the SubtractSolid() command.

AlrtDialog(concat( bigObject, '   ', GetTypeN(bigObject), chr(13), smallObject, '   ', GetTypeN(smallObject) ));

 

Are they what you think they are? If so, then I got nuttin' without seeing some code.

 

Raymond

Share this post


Link to post

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.


 

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.

×
×
  • Create New...