Sheet Set Manager API

Sheet Set Manager API

Anonymous
Not applicable
653 Views
8 Replies
Message 1 of 9

Sheet Set Manager API

Anonymous
Not applicable
Anyone out there doing anything with the SSM?

I see how to iterate the collection of open sheet sets, but I don't see
how to tell which one is current (visible in the SSM palette).

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
654 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Yeah, I do stuff with SSM.

I've never really worried about which one was visible. I know what folder
the current drawing is saved in, and use that to determine which database I
need to be using.

--
R. Robert Bell


"R.K. McSwain" wrote in message
news:5441126@discussion.autodesk.com...
Anyone out there doing anything with the SSM?

I see how to iterate the collection of open sheet sets, but I don't see
how to tell which one is current (visible in the SSM palette).

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
Message 3 of 9

Anonymous
Not applicable
R. Robert Bell said the following On 1/4/2007 11:40 AM:
> Yeah, I do stuff with SSM.
>
> I've never really worried about which one was visible. I know what folder
> the current drawing is saved in, and use that to determine which database I
> need to be using.
>

Hey Robert, how's it going?

Actually since I made that post, that particular problem has become a
non-issue.

What I need to do now is search for a certain 'Sheet Set' Custom
Property and if it exists, change it.

The SSM API documentation is basically non-existent. Do you ADN guys
have access to better docs?

Thanks.

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
Message 4 of 9

Anonymous
Not applicable
Agreed...the documentation is pretty weak, though there is a vba sample that
should get you pointed in the right direction.

Ie:

C:\Program Files\Autodesk Building Systems 2006\Sample\ActiveX\SheetSetVBA\

The problem i have is that I still havn't been able to return a list of all
the defined custom properties.

-Chris

"R.K. McSwain" wrote in message
news:5441291@discussion.autodesk.com...
R. Robert Bell said the following On 1/4/2007 11:40 AM:
> Yeah, I do stuff with SSM.
>
> I've never really worried about which one was visible. I know what folder
> the current drawing is saved in, and use that to determine which database
> I
> need to be using.
>

Hey Robert, how's it going?

Actually since I made that post, that particular problem has become a
non-issue.

What I need to do now is search for a certain 'Sheet Set' Custom
Property and if it exists, change it.

The SSM API documentation is basically non-existent. Do you ADN guys
have access to better docs?

Thanks.

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
Message 5 of 9

Anonymous
Not applicable
Here is how you can get a specific custom property.

Dim allProps As AcSmCustomPropertyBag
Set allProps = mySheetSet.GetCustomPropertyBag

Dim aPropValue As AcSmCustomPropertyValue
Set aPropValue = allProps.GetProperty("Sheet Total Starting Number")

I'm not on ADN, so I don't know if they have better docs or not. Most of
what I've done is by trial-and-error, similar to what Lee when thru for his
class on SSM at AU2005. If you are just starting out with SSM customization,
I'd suggest getting that class handout.


--
R. Robert Bell


"R.K. McSwain" wrote in message
news:5441291@discussion.autodesk.com...
R. Robert Bell said the following On 1/4/2007 11:40 AM:
> Yeah, I do stuff with SSM.
>
> I've never really worried about which one was visible. I know what folder
> the current drawing is saved in, and use that to determine which database
> I
> need to be using.
>

Hey Robert, how's it going?

Actually since I made that post, that particular problem has become a
non-issue.

What I need to do now is search for a certain 'Sheet Set' Custom
Property and if it exists, change it.

The SSM API documentation is basically non-existent. Do you ADN guys
have access to better docs?

Thanks.

--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
Message 6 of 9

Anonymous
Not applicable
Have you used the GetPropertyEnumerator?

--
R. Robert Bell


"Chris Shoemaker" wrote in message
news:5441289@discussion.autodesk.com...
...
The problem i have is that I still havn't been able to return a list of all
the defined custom properties.
0 Likes
Message 7 of 9

Anonymous
Not applicable
R. Robert Bell said the following On 1/4/2007 12:39 PM:
> Here is how you can get a specific custom property.
>
> Dim allProps As AcSmCustomPropertyBag
> Set allProps = mySheetSet.GetCustomPropertyBag
>
> Dim aPropValue As AcSmCustomPropertyValue
> Set aPropValue = allProps.GetProperty("Sheet Total Starting Number")

That's exactly where I was on it, but I keep getting an error. After
seeing your code, I figured we are on the right track, so I kept going.

After a bit, I have found that this works for custom properties owned by
the "Sheet", but not those owned by the "Sheet Set"

...and the .GetProperty method expects proper case also.


>
> I'm not on ADN, so I don't know if they have better docs or not. Most of
> what I've done is by trial-and-error, similar to what Lee when thru for his
> class on SSM at AU2005. If you are just starting out with SSM customization,
> I'd suggest getting that class handout.


Ok, I thought you were on ADN. Thanks for the reminder on the AU handout.



--
R.K. McSwain
http://rkmcswain.blogspot.com
0 Likes
Message 8 of 9

Anonymous
Not applicable
>Do you ADN guys have access to better docs?

ADN doesn't necessarily provide additional docs beyond the SDK, but it does
have a database of Questions & Answers, not too unlike this forum, that can
be searched.
--
Bobby C. Jones
0 Likes
Message 9 of 9

Anonymous
Not applicable
Yep, assuming they'd work similarly to the sheet sets themselves that was my
first try, but i seem to recall it not working.

-Chris

"R. Robert Bell" wrote in message
news:5441304@discussion.autodesk.com...
Have you used the GetPropertyEnumerator?

--
R. Robert Bell


"Chris Shoemaker" wrote in message
news:5441289@discussion.autodesk.com...
...
The problem i have is that I still havn't been able to return a list of all
the defined custom properties.
0 Likes