Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Is it possible to assign active view name to a string parameter?

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.
Forums > COE Forums > KBE > Is it possible to assign active view name to a string parameter?



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)