×
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

VB, DRAWING DUAL DIMENSIONS TEXT

VB, DRAWING DUAL DIMENSIONS TEXT

VB, DRAWING DUAL DIMENSIONS TEXT

(OP)
have found this thread http://www.eng-tips.com/viewthread.cfm?qid=343731 and it is useful but how to put text before and after dual dimension? i need dimension to look in following format (open brackets):

preferred language is VB.

Cheers,
Jenia Ladkov

RE: VB, DRAWING DUAL DIMENSIONS TEXT

(OP)
Thanks for the BaultText. following code works well except angular dimensions.

CODE --> VB

For I = 3 To oViews.Count ' scan all views for dimensions except main view and background views
Set oView = oViews.Item(I)
oView.Activate
Set oDims = oView.Dimensions
For J = 1 To oDims.Count
Set MyDimension = oDims.Item(J)
Set MyValue = MyDimension.GetValue
MyDimension.DualValue = catDualBellow
'----
iIndex = 1 ' main value
' If already in inch then don't use
MyValue.SetFormatName iIndex, "in"
MyValue.SetFormatPrecision iIndex, "0.01000"
' For Dual Value
iIndex = 2 ' dual value
MyValue.SetFormatName iIndex, "mm"
MyValue.SetFormatPrecision iIndex, "0.10000"
MyValue.GetBaultText 2, Array1, Array2, Array3, Array4
MyValue.SetBaultText 2, "[", "]", Array3, Array4
Next 'Dimension Loop End
Next 'Views Loop End 
But this code changes angular dimensions as well. How to skip that in an easy way?
I'm thinking about to do a search for angular dimensions and change a style to original state.

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