Reply

how to use sheetsizeoption.getname

[ Edited ]

 

Hi Guys,

I'm having trouble working out how to use the following Sheet.SheetSetup.SheetSizeOption.GetName.

What I want to do is get the string that is associated with the sheetsizeoption e.g. ISO A2 Wide  (594mm x 420mm)

any help appreciated.

Thanks,

James

 

 

Posted by: James Singleton
Post date: 6/12/2008 8:06:32 AM

2 REPLIES

RE: how to use sheetsizeoption.getname

[ Edited ]

 

'Dear james i have written this code in VB.NET just try it works fine

 

Public objSheets As SolidEdgeDraft.Sheets

Public objSheet As SolidEdgeDraft.Sheet

Public backSheet As SolidEdgeDraft.Sheet

'Set the sheets object

objSheets = objDraft.Sheets

For Each objSheet In objSheets

 cmbbgSheet.Items.Add(objSheet.Name & "( " & objSheet.SheetSetup.SheetHeight &  " X " &  objSheet.SheetSetup.SheetWidth & " )" ) 'Add to combo box like "A0-Endlish/German ( 1189 X 841 )"

Next

 

Posted by: Sandeep Shewale
Post date: 6/12/2008 11:41:50 PM

RE: how to use sheetsizeoption.getname

[ Edited ]

 

Hi Sandeep,

Thanks for the reply but not quite what i was looking for; the sheetsizeoption property returns an integer and looking at Jasons excellent SE SPY it looks as if you can get the string value associated with it. I was hoping to do this with Sheet.SheetSetup.SheetSizeOption.GetName but I don't now what to use for enumType or object.

Thanks

James

 

Posted by: James Singleton
Post date: 6/13/2008 4:30:28 AM