Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
creating sketch rectangle using FS
papawo
Member, Developers Posts: 206 PRO
Comments
-
This takes a little more work since skRectangle can't be used if the line is not horizontal or vertical. Here's a feature that does this:
https://cad.onshape.com/documents/0e3766b5a35b5c5624996974/w/5016344469b9316dcf92d981/e/d1ca1d28042636f9eeefcb3c
Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0 -
annotation { "Name" : "Expansion" }isLength(definition.expansion, NONNEGATIVE_LENGTH_BOUNDS);
where can i find my options for LENGTHBOUNDSPEC?0 -
See here: https://cad.onshape.com/FsDoc/library.html#module-valueBounds.fs -- the predefined options are listed a little below.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
-
thanks!
isnt there a search in FsDoc?0 -
what do you mean by this? [ startPoint2D, startPoint2D, endPoint2D, endPoint2D ]
var corners = [ startPoint2D, startPoint2D, endPoint2D, endPoint2D ];0 -
This assigns an array of four 2D points to the variable "corners". You can read more about FeatureScript arrays here: https://cad.onshape.com/FsDoc/variables.html#arrayIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
-
thanks! got it!
0


