Ilogic Detail view label

Ilogic Detail view label

ballnr
Advocate Advocate
369 Views
4 Replies
Message 1 of 5

Ilogic Detail view label

ballnr
Advocate
Advocate

Hi all

 

For my default detail view lable. Please see this picture.

Untitled.jpg

 

Can I have ilogic to copy text become to this picture.

 

Capture1.JPG

 

Please help.

 

 

0 Likes
370 Views
4 Replies
Replies (4)
Message 2 of 5

A.Acheson
Mentor
Mentor

Hi @ballnr 

 

You can do this in the style by adding a prefix to label name and removing "DETAIL" word from Display Text.

AAcheson_0-1694384493379.png

Here is the same process through ilogic.

Dim drawView As DetailDrawingView = ThisApplication.CommandManager.Pick(
                       				SelectionFilterEnum.kDrawingViewFilter, 
                       				"Select a drawing view")				   
drawView.Name = "Detail " & drawView.Name	  

Dim formattedText As String = drawView.Label.FormattedText 

drawView.Label.FormattedText = formattedText.Replace("DETAIL", "")

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 5

ballnr
Advocate
Advocate

Thank you for suggestion.

This is my first setting.

Capture5.JPG

When I change setting to

Capture6.JPG

I get the resault.

Capture7.JPG

 

For your Ilogic, I get the resault.

Capture8.JPG

But the "<VIEW IDENTIFIER>" is change to "Detail A".

Very diffical for me to change to same this picture.

Capture1.JPG

Is it possible for Ilogic to change text format at

Capture10.JPG

 

Change from 

 

Capture11.JPG

TO

Capture12.JPG

 

Please help and suggest.

 

0 Likes
Message 4 of 5

A.Acheson
Mentor
Mentor

In the style you can add the word "Detail" then hit space bar and you will end up with "Detail "

This will then end up with the label name looking like this Detail A.

I would avoid wrapping the Identifier with apostrophe like  "A" simply because you now can't set up the standard style to do this automatically. While it is possible to get this outcome with ilogic it would need to be made manually run  or run on save. Just send the formatted text to an inputbox or logger statement and recreate the formatted text string with the additional apostrophes. 

 

 

Logger.Info(drawView.Label.FormattedText)

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 5 of 5

ballnr
Advocate
Advocate

Please help to generate Ilogic.

 

So sorry for my skill.

0 Likes