Access standard sheetset properties with vb.net

Access standard sheetset properties with vb.net

mgigliotti
Participant Participant
499 Views
0 Replies
Message 1 of 1

Access standard sheetset properties with vb.net

mgigliotti
Participant
Participant

I am currently nearing home stretch on an application to set up a drawing package based on our standards at project inception from a few basic inputs.  I found Lee Ambrosius’ Sheet Set Course as well as several references to using custom tool palettes as interfaces, (all of which I cribbed shamelessly) and in general, seem to have sorted most of the really aggravating bits.  Its working pretty well and the various drafters whom I have had test it seem quite satisfied. 

 

I am however thoroughly stumped by what should be ( and probably is if you know what to do) a profoundly simple thing; which is to change the STANDARD (note the emphasis) sheet set properties. Specifically the project number, project name and revision number properties.

 

I have found tons of useful stuff about creating, reading and modifying custom properties but very little on most of the standard one.   While I can set Name, Subsets, Descriptions, Template path and so forth while creating the sheetset most of the other properties do not seem to be available programmatically.

 

The sheetset properties mentioned above seem to be accessible via:

                sheetSetDatabase.GetSheetSet().SetNewSheetLocation ‘[or setDesc , etc.]

some sheet properties are similarly available via:

       sheet.SetNumber(number) ‘[again or similar]

 

But there appears to be no setProjectNumber, setProjectName, or setRevisionNumber methods available, or at least VS2015 doesn't seem to know about them.  This seems an improbable omission, which leads me to the inescapable conclusion that I am just plain missing something. 

 

I have found one reference on the Autodesk knowledge base to a method for AcSmSheetSet.SetProjectNumber method, but the syntax on the page throws up a blaze of crimson whenever I try to put in my code.  It seems perhaps to be for vba not vb.net, but it is somewhat unclear.

 

To forestall the first obvious suggestions, I do indeed have the AcSmComponents21 .0 Type Library as a reference in the project and the following line in my imports block:

 

Imports ACSMCOMPONENTS21Lib.

 

Any nudges in the right direction would be hugely helpful.  In the interim I am creating custom versions of the properties in question, since those I can access.  This is not what I would call and optimal solution, however.

0 Likes
500 Views
0 Replies
Replies (0)