iLogic rule function help

iLogic rule function help

karthur1
Mentor Mentor
412 Views
1 Reply
Message 1 of 2

iLogic rule function help

karthur1
Mentor
Mentor

I am wanting to make an iLogic rule and I cant figure out what function controls what I need.  In an idw, under Tools > Document settings, Drawings Tab....at the very bottom there is a "Copy Model iProperty Settings".  Inside this is a checkbox that turns on/off the "Copy Model iProperties".

 

Can someone tell me what iLogic function controls turning this on/off?  Also, I need to know what code selects the specific iProperty.

 

2015-01-15_1030.png

 

 

Thanks,

Kirk

 

 

0 Likes
413 Views
1 Reply
Reply (1)
Message 2 of 2

MegaJerk
Collaborator
Collaborator

As far as I know, you can't. 

But you can mess with the settings for the iProperty Source (see image) using the code : 

Sub DrawingSettings()
     
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.activeDocument
    
    Dim targetModelPath As String
    targetModelPath = "V:\SomePath\SomeAssembly.iam"
    
    oDoc.DrawingSettings.CustomPropertySourceFile = targetModelPath

End Sub

 



DrawingSettings.PNG

However, setting that you could at least use it as an easy means of targeting the model file, and just pull the iproperties in (manually) using code. 



If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
0 Likes