Prashant, I appreciate your help. Thank you.
However it is possible to launch a script from the "view" of a profile card...I have already done it!
Steps:
1) Launch Form Designer.
2) Open the profile card you want to launch the script (In my case, I use the Attribute Profile Card for CATIA Part.)
3) Go to Tools -> Scripts...
4) Apply the script you want to use! (I am using the "Screen Startup" hook)
5) Restart SmarTeam to see the effects...
The only other complication is as follows:
I have a script applied to Check In and Release of CATIA parts, through script maintenence, and I want to use the same script for the profile card view. I discovered that the input parameters to the script are different between Check In/Release and the profile card view.
Here is my code, I hope it's clear!
Feel free to email me if you have any questions...
~Joe
Code:
------------------------------------------------------
Function AppliedToProfileCard(ApplHndl As Long,SelectOp As String,FirstPar As Long,SecondPar As Long,ThirdPar As Long ) As Integer
foo = AppliedToCheckIn(ApplHndl,SelectOp,SecondPar,FirstPar,ThirdPar)
End Function
Function AppliedToCheckIn(ApplHndl As Long,SelectOp As String,FirstPar As Long,SecondPar As Long,ThirdPar As Long ) As Integer
Rest of the code follows...
---------------------------------------------------------
I needed to switch FirstPar and SecondPar for the profile card version. Other than that, the code is the same... |