×
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

Get the linked Attribute value of a note (VBA)

Get the linked Attribute value of a note (VBA)

Get the linked Attribute value of a note (VBA)

(OP)
Hi all,

I have a note in a drawing which displays the value of an attribute from part document
i would like to
1. check what property this has been linked to
2. link if it is not linked to the desire property.

kindly let me know how could i achieve this thro vba.

Regards,
Maddy

RE: Get the linked Attribute value of a note (VBA)

Quote:

1. check what property this has been linked to
Open the part and look for the matching note in the File Properties
-or-
Open the drawing and then Edit Sheet Format and hover the cursor over the note.

Quote:

2. link if it is not linked to the desire property.
http://help.solidworks.com/2014/English/solidworks...

RE: Get the linked Attribute value of a note (VBA)

(OP)
Dear CorBlimeyLimey

Thanks for the reply.
I would like to know how to achieve it through macro (VBA)

Regards,
Maddy

RE: Get the linked Attribute value of a note (VBA)

(OP)
Hi handleman

yes you are right.

i need to set the value of a note to a attribute if it is not linked to it.
getting the linked property is ok but how to set it.

Regards,
Maddy

RE: Get the linked Attribute value of a note (VBA)

If you set the text to the same thing that's returned by PropertyLinkedText, it will link automatically.

-handleman, CSWP (The new, easy test)

RE: Get the linked Attribute value of a note (VBA)

(OP)
Hi handleman,

Thanks for the reply
Will try and revert.

Regards,
Maddy

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