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!

macro problems

Status
Not open for further replies.

bendall

Automotive
Mar 12, 2003
5
CA
I can't seem to record macros using MSVBscript or CATscript. The packaged macros work fine, and it looks like I'm recording a macro, but when I go to run it or edit it there's nothing. Thanks in advance for any help.
 
Replies continue below

Recommended for you

Hi!
I believe the macro recorder will not work in every workbench. It also will not work in background view, I believe.
The documentation is not to good for beginners ( I am one ), I think, but you can learn a lot from looking at sample scripts on how to get to the objects you're after.
 
hi,

i made some vba macros that change some text in background view, it works. Eric N.

catiav5@softhome.net
 
Thanks for the help. It looks like a macro won't record in the Drafting Workbench. Does anyone know if this is a software default or if there's a patch for this problem?
THanks again.

Al
 
Hi Eric.N
Can you let me know the code for selecting the Text in Background view???
I was not able to get it......

One more Issue is, CATIA VB Editor works in my system some time and some time VB Editor is grayed out. i work with P4, 2GB Ram V5R8. I have tried to copy the CATSetting file when it was working and use the same when it is not working,but to no effect.
Any help on this regard is appreciated
Cheers
Ganesh.N

ganesh.n@engg.tjc.co.in
 
hi,

on order to get the text name "NameOfTheText" in background and set the value to "You got it !!":

set YourDrawing as DrawingDocument
set YourSheet as DrawingSheet
set BackgroundView as DrawingView
set MessageText as DrawingText


YourDrawing = CATIA.ActiveDocument
YourSheet = YourDrawing.Sheets.ActiveSheet
BackgroundView = YourSheet.view.item(2)

MessageText = BackgroundView.Texts.GetItem("NameOfTheText")

MessageText.text = "You got it !!"


That should help you if you know a little bit of VBA with CATIA Eric N.

catiav5@softhome.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top