×
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

Creating a Popup message on opening a CATPart

Creating a Popup message on opening a CATPart

Creating a Popup message on opening a CATPart

(OP)
Good Morning,

Does anyone know how to create a popup message that apears once on opening a CATPart.

I have a CATPart that has external links and I wish all users to open the "Feeder" document before working on the file. I can use a rule to popup a message every time the file requires an update, but this is annoying. If I new the KWA or KWE syntax for checking if an external link is populated then that would be ideal.

Any help from anyone would be appreciated.

Many thanks

Mooseman

RE: Creating a Popup message on opening a CATPart

can you please tell more about a rule which messages if update is needed?

yea it's a great idea to have a message at file opening. i also want to know how to do that..

RE: Creating a Popup message on opening a CATPart

You could create your own: "Open a Mooseman Part" VBA code that would check if a chosen part requires a feeder document, and if so, first open the feeder document, then open the part. I've done something similar with DXF parts to record a Path for automatically clicking a "SaveDXF" function, and for correcting text shift.

RE: Creating a Popup message on opening a CATPart

(OP)
TiKito

create a string parameter = Update
Set the string with two text options from the dropdown = None and Stop
In KWE create a reaction
Source type = selection
Sources = Pick your top of part node in spec tree
available event = update
Action = knowledgeware action

text to be typed in action box

if Update== "None"{
Message("please update your links")
}


----------------------------

2briancox can you provide any of your VBA code?

RE: Creating a Popup message on opening a CATPart

Unfortunately, no I cannot. I developed it for work, so it is proprietary.

RE: Creating a Popup message on opening a CATPart

I would say that there is plenty of code here in the forum for managing file opening through VBA. Try searching "Open part vba" in this forum.

RE: Creating a Popup message on opening a CATPart

(OP)
ahh, I have had a look at the forum. I think you have miss understood I do not want the file to open via VBA but an automatic popup in CATIA when the part is opened by the user.

RE: Creating a Popup message on opening a CATPart

Mooseman can you please post this with pictures? pictures always a great guide.

TiKito

create a string parameter = Update
Set the string with two text options from the dropdown = None and Stop
In KWE create a reaction
Source type = selection
Sources = Pick your top of part node in spec tree
available event = update
Action = knowledgeware action

text to be typed in action box

if Update== "None"{
Message("please update your links")
}

RE: Creating a Popup message on opening a CATPart

figured out a little bit how to deal with messages, but my message pops up only after update and not on file open. the whole point is
to get a message on file open.

btw you wrote pick your top of part node.what exactly should i pick in source?

RE: Creating a Popup message on opening a CATPart

(OP)
Tikito,

Please read the full thread, I asked "Does anyone know how to create a popup message that appears once on opening a CATPart"

I had a way of getting a message to appear on update, which you have done (using the method I described.

RE: Creating a Popup message on opening a CATPart

I did not watch memory / cpu usage ...

CODE --> CATVBA

Sub msgOnNewPart()

Dim a As Integer
a = CATIA.Documents.Count

While True
    CATIA.Caption = CATIA.Documents.Count & "/" & a & "   :"
    If CATIA.Documents.Count > a And _
    TypeName(CATIA.Documents.Item(CATIA.Documents.Count)) = "PartDocument" Then
        MsgBox ("new CATPart")
        a = CATIA.Documents.Count
    End If
Wend

End Sub 

you can run this macro at catia startup with modification in your command line

Eric N.
indocti discant et ament meminisse periti

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