Message 1 of 6
SSM Objects

Not applicable
04-06-2004
06:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Anyone played with the SSM objects for AutoCAD 2005 yet?
I've tried to understand the API but have not yet got an understanding how
it works.
For example I would like to loop through all sheets and check the names. A
sample for this is in the SheetSetVBA.dvb in C:\Program Files\AutoCAD
2005\Sample\ActiveX\SheetSetVBA.
But now I want to rename the sheets based on some criterias using SetName,
SetNumber and SetDescription methods. Somehow it doesn't work.
I tried to experiment with the List Sub in the SeetSet Class Module.
name = sheet.GetName
desc = sheet.GetDesc
sheet.SetNumber ""
ThisDrawing.Utility.Prompt ("sheet Name :" & name & vbCrLf)
ThisDrawing.Utility.Prompt ("sheet Desc :" & desc & vbCrLf)
sheet.SetNumber doesn't seem to work. What is missing or needed. I think it
might be InitNew but don't know how to implement it.
--
Best Regards, Jimmy Bergmark
CAD and Database Developer Manager at www.pharmadule-emtunga.com
Take a look at
JTB FlexReport (FLEXlm report tool) - www.jtbworld.com/jtbflexreport
SmartPurger (Purges automatically) - www.jtbworld.com/?/smartpurger.htm
or download some freeware at www.jtbworld.com
More on AutoCAD 2005;
www.jtbworld.com/autocad2005.htm