Osketch
- We temporarily stopped you from leaving DrawingHub so you could confirm The site above is not affiliated with DrawingHub in any way. Please continue at your own risk.
- What does Osketch - Logo, Icon & UI Design do? Osketch is a vector graphic design tool. It's lightweight, easy to use, and powerful. Osketch has many modern features. In Osketch, you can use any graphic as a mask, fill a shape with multiple modes, layout texts on a path.
list of snippets
I am a CAD administrator by profession and I create iLogic scripts. On this page you can find snippets and complete scripts that have created (unless stated otherwise) and I use regularly. Feel free to use them, most of these scripts are adaptations of other rules that can be found on the internet.
Show (oSketch.Name & ' is the active Sketch', 'iLogic') Else. Show ('Active Edit Object is not a Sketch', 'iLogic') End If. Rule2: Find the active sketch.
Link to a document that contains everything you need to know about working with iProperties in iLogic. I never seem to be able to find the document so I thought I'd link to it here: | ipropertiesandparameters.pdf |
Sub to check for custom property in the file, if the property does not exist, we create it. | CheckCustomProp |
iLogic (VB) that copies all custom Inventor properties | CopyCustomProp |
iLogic Script to run rules in underlying | RunRule |
Check document type, and sub type. Also create flatpattern trough iLogic and determine the sheet extents | SheetMetal |
A separate iLogic (VB) Function that adds a value to an array and resizes it. | AddToArray |
iLogic (VB) Functions to parse Filename and folder from complete Path. | Parse |
Bart Den Otter's iLogic script to align drawing views horizontally and vertically by selection of lines. | AlignView |
My iLogic function to check if property exists and otherwise add Custom iProperties to a file. | iPropertyFunction |
My VBA macro to turn on and of the 'Technical Requirements' dialog box found in the GOST standards of Inventor. Mark Lancaster wrote an Article following my featured post in Cadalyst magazine | Technical Requirements |
My iLogic script to turn visibility off for objects in all files in an assembly. Objects like Sketches, work planes, work axis and work points | Object Visibility |
By Dutt Thakar
I’ve written 2 iLogic utilities that I hope you will find useful. The first one rotates a section line at a specified angle.
To get it to work, you simply need to edit your section sketch, then add in an angled dimension. In my example this dimension is controlled by parameter “d0”. The iLogic utility makes “d0” equal to a user parameter called “NozzleAngle“, which you can control via a form (sample files attached at bottom of post) .
Here’s a video showing how the code works:
Here is the iLogic code
The second iLogic utility links parameter “d0” in the drawing, to a user parameter called “NozzleAngle” from the part file. Here is a video showing how the code works:
Here is the iLogic code:
Download the sample Inventor 2021 Part and Drawing file here.
Notes:
This version of the code was briefly tested in Inventor 2021.
Isketchnote
As always, please test all iLogic code extensively on non-production files. Do not use any code in a production environment until YOU have thoroughly tested it and have verified that it works as expected. Always back up any data before running any experimental code. You are ultimately responsible for any iLogic code that you run, so make sure you test it thoroughly!
Isketch Download
About the Author:
Dutt Thakar has been using Inventor and Vault since 2014 . He works for a company that creates food and dairy processing plants and equipment. Dutt’s career has been spent mostly working as a Mechanical Design Engineer. In his current role, Dutt creates automated models and drawings using Inventor and iLogic (apart from doing regular projects). He also uses VBA and VB.Net to create automation using the Inventor API.
LinkedIn | Blog
