Copy rules all at once

Copy rules all at once

npokhrelYK39M
Enthusiast Enthusiast
145 Views
2 Replies
Message 1 of 3

Copy rules all at once

npokhrelYK39M
Enthusiast
Enthusiast

hi, seems like I cant copy all the rules from one assembly files to another all at once? Do I have to do it one by one?

0 Likes
146 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor

with this method:

 

Dim oDoc As Inventor.Document = ThisApplication.ActiveDocument

Dim oRuleName As String = "RuleName"

Dim oAuto As IiLogicAutomation = iLogicVb.Automation
Dim oRule As iLogicRule

Try
        oRule = oAuto.GetRule("your file name here",oRuleName)
Catch
        MsgBox("The specified rule was not found in the active document. Exiting.",vbOKOnly," ")
        Exit Sub
End Try

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 3

WCrihfield
Mentor
Mentor

Yes.  It has to be done one at a time, either manually, or by code.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)