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.
Needing some Expert Suggestions or Pointers
eldon_brown
Member Posts: 41 ✭✭
I think I am doing too many things at once, but that is the way I learn: I am Learning Onshape, Leaning Feature Script, Designing a Resin 3D Cabinet, and playing with alternate ways of creating 3D Solids. I am also trying to learn Onshape Assemblies with "In Context" editing for more complex future projects.
My experiments with Feature Script has led me to the conclusion that almost anything can be created with "A '' simple primitive, it just needs to be stretched and munged into the shape desired. To that end, I have created and using my "Polygon Pipe Feature Script" to create Solid or Hollow Pipes at any line on the screen. YES, I know, there are more traditional ways of creating most solids, but this is my way of learning more about Onshape External and Internal workings. I have been using several Solid Modeling tools for about fifteen years and know most standard techniques.
I am currently trying to add a new function to my Polygon Pipe Feature Script. Currently a pipe can be created on any line (short or long) but what I want to do is add functionality: to extend the pipe at either, or both ends, perpendicular to the pipe face. Currently the script will do that, but I wind up with three parts, the middle, and optionally an extension on each end.
It appears there are two solutions: extrude the extensions, and then do a opBoolean() to form one part, Or, maybe, draw an extended centerline from the user selected line and then run my current "pipe" function on the extended line. which should produce the single desired part.
I would appreciate it If someone could provide some programming details of these two approaches. I have looked and experimented, but have not YET found the magic.
My Polygon Pipe test bed document is:
My Resin 3D Print booth is:
Note: The Resin 3D Print Booth Design uses a simple circle to create the example Resin Bottles and ONLY three straight lines in one sketch for everything else. The file contains an "Old Part Studio" of my original design for comparison review.
Remember, this is not an attempt to learn "proper" 3D Modeling Techniques, but my way of learning more of OnShape and Feature Script Programming.
Thanks,
--Eldonb
0
Comments
Eventually, I want to provide options to move the face via: Blind, Upto Next, or User Specified Face, etc.
I just need to find examples and learn a lot more Feature Script functions and their parameters. Note: "opMoveFace" is only mentioned 12 times in the "std" lib documentation (not much help for a new Feature programmer).
From the Online Doc's:
The transform to apply to the face.
EXAMPLE
###########################################
// Execution/Main ###############
It is now in my "Polygon Pipe FeatureScript" - V3.05.02 EXP