| You are not authorized to post a reply.
|
|
| Author |
Messages |
|
SHAILRANAWARE

 |
| 27 Apr 2007 04:03 AM |
|
| In drafting workbench is it possible to assign active view or active sheet name to a string parameter? |
|
|
|
|
NEVJOHNSON
 |
| 30 Apr 2007 09:17 AM |
|
Use a macro in KWA with an argument passing the parameter you wish to modify. Then add the following code: Set DrgDoc = CATIA.ActiveDocument Set Shts = DrgDoc.Sheets Set Sht = Shts.ActiveSheet Set DrgView = Sht.Views Set ActView = DrgView.ActiveView DrgName = ActView.name MyParam.Name '= DrgName
Also add a persistent rule that runs the VBScript macro and has the string as input.
Regards
Nev
|
|
|
|
|
SHAILRANAWARE

 |
| 02 May 2007 12:52 AM |
|
| I tried for same thing, but the parameter is not updating as per active sheet. Actually I want to put logic in my startup drawing that can avoid access to detail sheet. If user selects or activates the detail sheet, code should activate other sheet than the detail sheet, do you have any other method to do this? |
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|