Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Set Scale via Macro to TXT Box

Status
Not open for further replies.

reneparm

Industrial
Joined
Feb 9, 2012
Messages
1
Location
DE
Hello,
I created a new Titleblock in Catia i used a catalog with all Sheet Formats in it.
I added some text boxes with different names like PartNumber, Definition and also Scale.

By searching, I found all the commands to read the Properties of a Part.

But now I need to print the Scale of the active View in the text box "Scale".

My current macro looks like this:

Dim sPartNumber ' As String
sPartNumber = prdSource.PartNumber
Dim txtPartNumber As DrawingText
Set txtPartNumber = vwBackgroundView.Texts.GetItem("PartNumber")


Can someone tell me how to read the scale an put it in the text box?

Thanks alot!

Rene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top