Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access section properties using scripting??

Status
Not open for further replies.

Charlie

Mechanical
Dec 28, 2015
15
0
0
IN
I want to access properties of section view using scripting like its name ident i.e. F for section F-F and scale (to add it later to text box).
As i couldn't find any method in object tree.method name returns full name.Is there any way to access only ident and scale?
Any suggestion would be helpful
 
Replies continue below

Recommended for you

Hi,

From DS v5automation.chm:

o Sub SetViewName( CATBSTR iViewNamePrefix,
CATBSTR iViewNameIdent,
CATBSTR iViewNameSuffix)

Sets the prefix, the ident and the suffix of the name of the drawing view. The method returns an error in case of 2D component reference.
Note: Prefix of drawing view can be also modified across name property defined in CATIABase
Warning: This method is not available with 2D Layout for 3D Design.
Example:
This example sets the prefix, the ident, and the suffix of the name of the MyView drawing view respectively to "MyPrefix", "MyIdent", and "MySuffix".
MyView.SetViewName ("MyPrefix", "MyIdent", "MySuffix")

You can search also for scale.



Regards
Fernando

- Romania
- EU
 
Status
Not open for further replies.
Back
Top