×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SDK Starter for ten...

SDK Starter for ten...

SDK Starter for ten...

(OP)
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

RE: SDK Starter for ten...

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

RE: SDK Starter for ten...

(OP)
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.

RE: SDK Starter for ten...

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

RE: SDK Starter for ten...

(OP)
Thanks donyoung

Bit disapointing still....

Thanks for your help.

Kind regards

RE: SDK Starter for ten...

On your second question revision manager has where used functionality.

KENAT, probably the least qualified checker you'll ever meet...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources