Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SDK Starter for ten...

Status
Not open for further replies.

otacustes

Electrical
Jul 12, 2004
10
0
0
GB
Hi Guys,

My first question is to do with text boxes
Looking at the Draft TextBox object in the SDK, it shows the properties/methods as having the Name property associated with it. The name property indicates that:

"This String property returns or sets and returns the name of the referenced object."

when trying to set the name of a text box I get an error saying:

"Compile Error:
Assignment to a constant not permitted"

..although the SDK says that should be possible.

My second question is about relationships between drafts and parts, assemblies etc...
If you look at an assembly it will contain links to a part just like a draft will contain a link to a part or assembly. Does anyone know of a reverse link where a part knows of a draft that once referenced it?

Does anyone have any experience of this or any solutions?

Any help is appreciated.

Kind regards
 
Replies continue below

Recommended for you

Hi,

1. I think that this error message is related to something
else. The expected error after this (VB6) :

<objDraft>.Sheets.Item(1).TextBoxes.Item(1).Name = "MyBox"

should be

"Object doesn't support this property or method

because:

From the Object-Browser for SE_Textbox:

Property Name([Recurse]) As String
read-only < -----------------
Member of SolidEdgeFrameworkSupport.TextBox
Returns the name of the referenced object.

2, no there is no link information from part/asm to draft


dy
 
Thanks donyoung for your reply,

If I am understanding you correctly the way to assign a name to a textbox is to recurse through the textboxes collection and assign a name as per your example:

<objDraft>.Sheets.Item(1).TextBoxes.Item(1).Name = "MyBox"

if this is the case, how would you create a textbox and assign a name to it? If I used your example above how would I know I was assigning the right name to the right textbox?

Thanks for your help.
 
Hi,
hmm, seems I was a bit unclear.

A name can't be assigned to a textbox neither manually nor
programatically. To pick a specific textbox you can either
walk the collection and check the value or check its name
to match a known one.

dy
 
On your second question revision manager has where used functionality.

KENAT, probably the least qualified checker you'll ever meet...
 
Status
Not open for further replies.
Back
Top