Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Feb 9, 2012
1
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