Update View Ports by following the objects in model space

Update View Ports by following the objects in model space

danijel.radenkovic
Collaborator Collaborator
1,756 Views
10 Replies
Message 1 of 11

Update View Ports by following the objects in model space

danijel.radenkovic
Collaborator
Collaborator

Hello to all,

I have some object and I have created an view port with object in the center of the view port. If I try to move object in model space, view port must follow the change and prevent that object goes outside of the view port border. Is it somehow possible to lock position of object on view port? Please see attache video.

 

Locking of the model in the model space is not a good solution for me cause other user always can remove lock constraint and move the object.

 

P.S. If it is helpful for the solution, I can create a block from object so maybe insertion point can be followed by view port somehow?

 

Best,

Danijel

 

 

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Accepted solutions (1)
1,757 Views
10 Replies
Replies (10)
Message 2 of 11

imadHabash
Mentor
Mentor

Hi.

 

>>  Is it somehow possible to lock position of object on view port? <<

in the way that you're asking for it's NOT applicable . as you know the VP is acting like a window looking to a certain model space objects.

 

Regards,

Imad Habash

EESignature

0 Likes
Message 3 of 11

danijel.radenkovic
Collaborator
Collaborator

@imadHabash wrote:

Hi.

 

>>  Is it somehow possible to lock position of object on view port? <<

in the way that you're asking for it's NOT applicable . as you know the VP is acting like a window looking to a certain model space objects.

 

Regards,


So , Is it possible to update position of the view port? I believe it's possible to be done programmatically so I will try to find solution.

I thought something like this:

  1. Get block insertion point (which will be placed in the center of the whole object or geometry)
  2. Get coordinates of the current VP
  3. Set coordinates o the VP according to block insertion point
  4. Replace old coordinates of the VP with new coordinates
  5. Update VP and layout

 

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Message 4 of 11

imadHabash
Mentor
Mentor

>>  I believe it's possible to be done programmatically so I will try to find solution. <<

maybe ... let's wait and see. but till then i'm always change my VP exactly as it's moved in model space by using -PAN command ( notice the dash before ).

just click inside your VP and active -PAN then write the distance that you want to move after moving your cursor to the needed direction . i mean that the distance will follow your cursor.

 

Hope that it's help ... 🙂

Imad Habash

EESignature

0 Likes
Message 5 of 11

MikeKovacik4928
Advisor
Advisor

As far as I know this is not possible.

Without worrying about programming you can use the view command, save the view with a name, where it is now,

move your object to its new position, save the view again with a new name

 

In your paperspace viewport layout, once inside the viewport, you can restore these named views.

 

Michael Kovacik
2d & 3d Autocad and Inventor designer/draughtsman
.
Draughting/Designing (Manufacturing) (31 yrs)
-Drawing Board (3 yrs)
--Cad (28 yrs)
---Cadkey (4 yrs)
---AutoCAD 2d & 3d (16 yrs)
---Inventor (4 yrs)
---Autocad and Inventor Simultaneously (4 years)
---(and recently Autocad/Inventor Customisation)
.
Autodesk Product Design Suite Ultimate 2018
Autocad 2018, Inventor Pro 2018
(personal licensed copy)
.
Johannesburg, South Africa
.
(Impossible only means you haven't
found the solution yet)

0 Likes
Message 6 of 11

danijel.radenkovic
Collaborator
Collaborator

I tried to open your .dwg file but I am getting the message:

Capture.PNG

 

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Message 7 of 11

danijel.radenkovic
Collaborator
Collaborator

@imadHabash wrote:

>>  I believe it's possible to be done programmatically so I will try to find solution. <<

maybe ... let's wait and see. but till then i'm always change my VP exactly as it's moved in model space by using -PAN command ( notice the dash before ).

just click inside your VP and active -PAN then write the distance that you want to move after moving your cursor to the needed direction . i mean that the distance will follow your cursor.

 

Hope that it's help ... 🙂


Yes, it works when I know x and y value of movement but, as I said, the other user can move object in model space without my knowing.

 

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Message 8 of 11

imadHabash
Mentor
Mentor

in general ... when a drawing set in model space , nobody have the right to move it any where because this action will destroy all attached xref files and any other linked dwg files. i think that you have here a permissions issue for others to what to do or not . 

 

regards, 🙂

Imad Habash

EESignature

0 Likes
Message 9 of 11

danijel.radenkovic
Collaborator
Collaborator

@imadHabash wrote:

in general ... when a drawing set in model space , nobody have the right to move it any where because this action will destroy all attached xref files and any other linked dwg files. i think that you have here a permissions issue for others to what to do or not . 

 

regards, 🙂


File is already on Autodesk Vault and some group of users have possibility to modify the drawing in model space which will of course reflect on the layouts.

When user has possibility to edit drawing, he is able to move objects in the model space? I believe it can't be prevented using permissions, am I right?

I can lock object but for user it is easy to break constraint.

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Message 10 of 11

pendean
Community Legend
Community Legend
Accepted solution
You and these other users probably need to be talking to each other: you are looking for a software solution to a workflow and cad management problem. There is no fix, since whatever you do to lock they can do the reverse to unlock as well.

If you don't have the authority, talk to a supervisor or director that does and you all start working in CAD standards you all must follow.

Good luck.
0 Likes
Message 11 of 11

danijel.radenkovic
Collaborator
Collaborator

You are totally right!

Thank you!

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes