Scale of a view in a multiple part drawing

Scale of a view in a multiple part drawing

dypro
Advocate Advocate
595 Views
10 Replies
Message 1 of 11

Scale of a view in a multiple part drawing

dypro
Advocate
Advocate

Hello everyone, need help with this one, 


I have a drawing with several pieces in it.

We have a block that picks up the mass and material properties from the piece of the view we select and places it in the block so we can place the block one time for each piece and have the mass and material of each one. Into that block we also write down the scale of the view we selected. (we select a view and the inventor gets to the piece of the view and retrieves those properties, however the scale is right now put by hand)

 

I'm looking for a way to modify this block so that the scale of the view we selected is automatically placed in the block as well.

 

I'm guessing that I need to retrieve the "view scale" of the view I select and get it in the block as a text (if we place it into an iproperty, when we click the next view it would overwrite it and we wouldn't get the desired result)

 

Help please.

 

0 Likes
Accepted solutions (1)
596 Views
10 Replies
Replies (10)
Message 3 of 11

dypro
Advocate
Advocate

Hello, denis
I have been reading the thread you linked, wich has other links in it.
I don't want to scale the views, I just want the little "1:10" or the scale it is in, that appears when placing a view, to appear in an inventor symbol.

0 Likes
Message 4 of 11

denis.semeniuc
Advocate
Advocate

denissemeniuc_0-1699542824182.png

 

Hi,

in symbol definition place texte :

1-property of sheet

2-scale of origin view

3- place in the symbol

 

In the symbol you will be seed only the scale of the first object placed in the sheet.

 

sorry for my english 😉

0 Likes
Message 5 of 11

denis.semeniuc
Advocate
Advocate

or

 

denissemeniuc_0-1699543331086.png

denissemeniuc_1-1699543445583.png

 

denissemeniuc_2-1699543484231.png

 

this well be work for each parts

 

 

 

0 Likes
Message 6 of 11

dypro
Advocate
Advocate

Hello denis,

I already know this.

The problem is that we want to do that with more than one piece in the drawing.

I know how to place the scale of origin view, the problem is precisely that we have more than one origin view since we have multiple pieces in the same sheet and it only gets the scale of the very first one.
We want the scale of the first when we click the first, the second when we click the second and so on... so we can place a little "box" with the weight, material and scale of each view

0 Likes
Message 7 of 11

A.Acheson
Mentor
Mentor

I agree with @denis.semeniuc this should be done within the typical view label and not in a symbol. That would overcomplicate the process. Really the best solution is to set the default view label to have all this information. Or alternatively use ilogic to populate the view label with formatted text of the required iproperties. Can you share an image of what the desired outcome is to be? 

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

dypro
Advocate
Advocate

hello @A.Acheson the problem is that companies scarcely bow to the laws of inventor 😅
the desired outcome is something similar to this:

dypro_0-1699601449871.png

the only thing that it's not automatically filled when I click on a view is the scale, everything else is already automatic
as I said, I tried but the only thing I achieved is to get the scale of the first base view, not the others

0 Likes
Message 9 of 11

A.Acheson
Mentor
Mentor

You can get the scale of each view manually by this method. Here is the help page for scalestring from view

Syntax

DrawingView.ScaleString() As String

 

Dim drawView As DrawingView = ThisApplication.CommandManager._
								Pick(SelectionFilterEnum.kDrawingViewFilter, "Pick a View")
MessageBox.Show(drawView.ScaleString, "iLogic")

 

 

Now you need a way of getting the text into the sketch symbol. This would be normally doen through promted entry and feed the required data to the prompt. How are your currently doing that for all the other properties custom to that view? Is this the method.

AAcheson_0-1699649547336.png

 

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

dypro
Advocate
Advocate

hello @A.Acheson 

It works, I see the scale of the views.

Now here is the challenge:
The ideal outcome would be that when I put the symbol and click the view the scale would fill itself as everything else

The symbol is called SH_CAR_D.

All the parameters have been set with the metod you showed.

But there is no parameter for the scale of a view other than the initial.

In our drawings there is a max of 20 pieces per drawing.

Not sure if I need to create 20 personalized iproperties to store the values of the individual scales and then ... maybe make 20 diferent symbols each one calling one iproperty? It seems like an awful way of making this...

0 Likes
Message 11 of 11

A.Acheson
Mentor
Mentor
Accepted solution

For this prompted entry on the sketch symbol is the way to go.  See example here.

 

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