iLogic - Adding Rules to a Drawing

  Рет қаралды 20,649

Synergis Engineering Design Solutions

Synergis Engineering Design Solutions

Күн бұрын

Пікірлер: 11
@AlbrechtJ
@AlbrechtJ 4 жыл бұрын
Thanks for excellent tutorial.
@SynergisCAD
@SynergisCAD 4 жыл бұрын
You are welcome!
@robertclementi9347
@robertclementi9347 Жыл бұрын
WHERE DO YOU GET COMMANDS FOR UPDATE AND ZOOM RULE?
@paulomelo5453
@paulomelo5453 6 жыл бұрын
When I create a project in Inventor, I always create subfolders with the names: Parts & Assemblies Standards Drawings I would like to be able to save the PDF files in the Drawings folder or even create another folder with the PDF name inside this workspace. What would the code look like for this alternative? Thanks
@davebreiner2744
@davebreiner2744 6 жыл бұрын
Hi Paulo, Thanks for your question. Curtis Waguespack is an expert in several Inventor topics and may have the answer for which you are looking. here is a shortcut to his article: inventortrenches.blogspot.com/2011/07/ilogic-to-save-pdf-files-to-new.html Regards, Dave
@paulomelo5453
@paulomelo5453 6 жыл бұрын
@@davebreiner2744 Thanks a lot.
@MostafaMahmoud-wz6gx
@MostafaMahmoud-wz6gx 5 жыл бұрын
thanks for the video, it is helpful. can we relate the views scale and the sheet size together for example if I have many views in my sheet I would like to make the scale of views automatically changes according to my sheet size
@masteryourexceldansk9365
@masteryourexceldansk9365 4 жыл бұрын
why do you not make the code like ActiveSheet.TitleBlock = TITLEBLOK iLoicVB-UpdateWhenDone = True ' Done and of Cause Spell it the same as the TITLEBLOCK name No need for all the if and else if
@johandegreef3846
@johandegreef3846 6 жыл бұрын
The PDF print rule is nice, but it should have the drawing number instead of "Dave's PDF print"... Can it be? And run automatically when hitting save
@davebreiner2744
@davebreiner2744 6 жыл бұрын
Hi Johan, You can use the drawing number as the name for the PDF. PDFName = iProperties.Value("Custom", "Drawing No:") ThisDoc.Document.SaveAs(PDFName & ".pdf" , True) I created the “Drawing No:” Custom parameter and use this in my Drawing Titleblock form. The PDF will save with the drawing number as its name. As far as auto run after a save. All you need to do is add the rule to the “After Save Document” Event Trigger. Thanks, Dave
@davebreiner2744
@davebreiner2744 6 жыл бұрын
Hi Johan, Try the code below. This code will save the PDF with the file name. '------start of iLogic------- oPath = ThisDoc.Path oFileName = ThisDoc.FileName(False) 'without extension oPDFAddIn = ThisApplication.ApplicationAddIns.ItemById _ ("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}") oDocument = ThisApplication.ActiveDocument oContext = ThisApplication.TransientObjects.CreateTranslationContext oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism oOptions = ThisApplication.TransientObjects.CreateNameValueMap oDataMedium = ThisApplication.TransientObjects.CreateDataMedium 'Define the drawing Dim oDrawing As DrawingDocument oDrawing = ThisDoc.Document Dim oSheet As Sheet Dim lPos As Long Dim rPos As Long Dim sLen As Long Dim sSheetName As String Dim sSheetNumber As String 'step through each drawing sheet For Each oSheet In oDrawing.Sheets 'find the seperator in the sheet name:number lPos = InStr(oSheet.Name, ":") 'find the number of characters in the sheet name sLen = Len(oSheet.Name) 'find the sheet name sSheetName = Left(oSheet.Name, lPos -1) 'find the sheet number sSheetNumber = Right(oSheet.Name, sLen -lPos ) 'set PDF Options If oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then oOptions.Value("All_Color_AS_Black") = 1 oOptions.Value("Remove_Line_Weights") = 1 oOptions.Value("Vector_Resolution") = 400 oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintSheetRange oOptions.Value("Custom_Begin_Sheet") = sSheetNumber oOptions.Value("Custom_End_Sheet") = sSheetNumber End If 'get PDF target folder path oFolder = Left(oPath, InStrRev(oPath, "\")) & "PDF" 'Check for the PDF folder and create it if it does not exist If Not System.IO.Directory.Exists(oFolder) Then System.IO.Directory.CreateDirectory(oFolder) End If 'Set the PDF target file name oDataMedium.FileName = oFolder & "\" & sSheetName & ".pdf" 'Publish document oPDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium) Next '------end of iLogic-------
How to Add, Delete, and Constrain Components with iLogic in Autodesk Inventor 2019
34:54
Synergis Engineering Design Solutions
Рет қаралды 12 М.
iLogic Automation for Drawings (Webinar recording 30 APR 2019)
1:00:27
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Autodesk Inventor iLogic 101
55:27
Hagerman & Company
Рет қаралды 13 М.
Autodesk Inventor iLogic Product Demonstration
24:38
Man and Machine Ltd
Рет қаралды 11 М.
Fit Views in iLogic Drawing (Autodesk Inventor)
10:28
DesignAutomation
Рет қаралды 4,3 М.
03. Customize BOM on Drawing to add Paint area and Total Paint area
18:45
Autodesk Building Solutions
Рет қаралды 12 М.
Using Excel to Drive an iLogic Configurator
9:28
Man and Machine Ltd
Рет қаралды 3,1 М.
Automating Dimensions on Drawings | Autodesk Virtual Academy
43:41
KETIV Technologies
Рет қаралды 12 М.
How to create iParts | Autodesk Inventor
13:07
Tech3D
Рет қаралды 142 М.
Getting Started with iLogic | KETIV Virtual Academy
1:01:23
KETIV Technologies
Рет қаралды 4,1 М.
New iLogic Drawing Snippets for 2021
51:46
IMAGINiT Technologies
Рет қаралды 4,1 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН