Revision Table Dialog Box Control With iLogic

Revision Table Dialog Box Control With iLogic

Anonymous
Not applicable
502 Views
6 Replies
Message 1 of 7

Revision Table Dialog Box Control With iLogic

Anonymous
Not applicable

I would like to set the revision table to default as per the image below  using iLogic, but I would also like to disable the check boxes so they cannot be activated. Is this possible? I have tried the usual routes Google etc. and have checked the API programming help file but haven't been able to find the pertinent information (I can't see it for looking - if it indeed exists).

 

Thanks in advance for any help.

paul_dorney_0-1621593504430.png

 

0 Likes
503 Views
6 Replies
Replies (6)
Message 2 of 7

R.Mabery
Advocate
Advocate

Looking at the RevisionTable Obect, there is a boolean prop called UpdatePropertyToRevisionNumber.   I don't see anything for the Auto Index though.


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies
Message 3 of 7

R.Mabery
Advocate
Advocate

Actually.....look at the Add2 Method for a RevisionTable.  It includes an argument for the AutoIndex argument.


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies
Message 4 of 7

A.Acheson
Mentor
Mentor

The visibility of the option controls within that form are likely not exposed. You could call the command for revision box and with enable set to false remove it from the ribbon. This would mean a user cannot set the revision box options manually and ilogic is the primary method to call revision box creation/changes. 

    'https://forums.autodesk.com/autodesk/attachments/autodesk/301/8282/1/INV2020_CommandNames_inclAddIns.txt
    Dim oCommandMgr As CommandManager
    oCommandMgr = ThisApplication.CommandManager     
    Dim oControlDef As ControlDefinition
    oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("DrawingRevisionTableCmd")
    oControlDef.Enabled = True 'To remove Revision Box control from ribbon

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 5 of 7

Anonymous
Not applicable

Cheers Randy,

 

I will have a look at both your suggestions and see what I can do with them.

0 Likes
Message 6 of 7

Anonymous
Not applicable

Cheers  A. Acheson

 

I will have a look at this and see what it does, unfortunately my skill levels are still at just basic iLogic level rather than API programming. I'll let you know how I get on.

Thanks again.

 

0 Likes
Message 7 of 7

Anonymous
Not applicable
Hi Alan

So having had a look at your code, if I set it to False it disables the ability to insert the the revision table from the ribbon. This forces users to use the Vault revision table, but by default it seems to Auto-index and updates the revision number. That is not quite what I am looking to achieve, what I want is for the exact opposite. I will keep looking until I can find what I need, thank you for your help.

Regards,
Paul.
0 Likes