×
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

Change the naming of Detail view callouts
2

Change the naming of Detail view callouts

Change the naming of Detail view callouts

(OP)
Hi,

I'm new to the forum, but have been a Catia jockey since 2005.
I'm trying to find a method for automatically naming the callouts on detail views.
The company I have just joined have switched to Catia from Pro/E and as such, are being finicky about Catia drawings and the slight differences inherent in them.
Basically, at the moment when a detail view is created the callout merely references the sequential ID letter.
What they want is for the callout to state "See Detail [ID]"
I have looked in the standards as Admin but cannot find anything. The only way I have found is to choose properties on the actual view and change the ID field.
Surely there is a way of doing this automatically.
I know is a feeble point, but they are insisting on it :/

Cheers in advance for any pointers

RE: Change the naming of Detail view callouts

Hi,

Late response, I was hopping that someone else will give you an answer... here is your solution.

CODE --> CATScript

Sub CATMain()

Msgbox "Select Detail View to Activate and Change Name"
CATIA.StartCommand"Activate View"

Dim InputObject(0)
InputObject(0) = "DrawingView"
Dim DrwSelect As Selection
Set DrwSelect = CATIA.ActiveDocument.Selection
Status = DrwSelect.SelectElement2(InputObject, "Select View", False)
 CATIA.StartCommand"Activate View"
CATIA.ActiveDocument.Update

Dim MyDoc As DrawingDocument
Set MyDoc = CATIA.ActiveDocument
Dim MySheets As DrawingSheets
Set MySheets = MyDoc.Sheets
Dim MySheet As DrawingSheet
Set MySheet = MySheets.ActiveSheet
Dim MyView As DrawingView
Set MyView = MySheet.Views.ActiveView

Dim myString 'As Double
myString = "See MyID" ''here you can put what you want - See Detail A
myString = InputBox ("Please enter the NEW ID", myString, "New ID for Detail View")

 '~ MyView.SetViewName "MyPrefix", "MyID", "MySuffix" - here is complete name, uncomment this line to see and comment next one
  MyView.SetViewName "", myString , ""

End Sub 

You can modify all the other fields if you want, just read the commented line in code.

Regards
Fernando

https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...

RE: Change the naming of Detail view callouts

(OP)
Hi Fernando,

Thanks for the response, I tried the CATScript thanks very much, it works well.
Problem is I was trying to set this as a default in either settings or standards to be used company-wide. If users are responsible for changing every detail view generated, views will get missed and time will be used up changing the default everytime.
I'm trying to make the default See Detail ID so there are no changes needed.
Anyone got any idea?

Cheers

RE: Change the naming of Detail view callouts

2
Hi,

Go to this following folder
1. x:Program files\Dassault Systemes\B19\intel_a\resources\msgcatalog
2. find a file by name "CATView.CATNls"
3. open the file with notepad
4. change the names of view as you wish (mentioned in bold letters below)
like SectionCutView="Section cut "; to SectionCutView="Section";

Hope this is what you are searching for.

REgards,
Maddy.

RE: Change the naming of Detail view callouts

(OP)
Wow!!!
That is exactly what I needed. Thank you very much indeed. Genius :)

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