Jump to content

Edit Viewport Names?


eas

Recommended Posts

the name of the viewport is on the data pane of the Object Info Palette, and this can be edited via the organisation palette, the navigation palette, or directly on the Object Info Palette for a selected viewport.

To edit the name of the viewport in the Navigation Palette, right mouse click on the viewport, choose edit, then change to the data tab

Edited by archoncad
Link to comment

Object names can be quite useful. They are checked for uniqueness and are "persistent", ie. retained when copying & pasting between files (uniqueness precedence is on "first in"-basis.)

In future we will see - and may want to use - more object names. One of the really exciting new features in the plug-in development world is the ability to associate arbitrarily selected objects.

Glad you asked. Of course it does not "mean" anything...

What it means, though, is that two or more plug-in objects can talk to each other, exchange information. Two flights oF stairs might be logically connected, a beam might tell a column how it should design itself and so on.

Meanwhile, this script will take you to the Principal's Office, if it has been named correctly:

PROCEDURE MyOfficeNow; { ? Petri Sakkinen 1994 - 2007 } 

VAR 
objName : STRING;
x, y : REAL;
obHd : HANDLE;

BEGIN 
   objName := STRDIALOG('Office to go to for a flogging:', 'Principal');
   IF NOT DIDCANCEL THEN BEGIN
       DSELECTALL;
       obHd := GETOBJECT(objName);
       IF NOT(obHd = NIL) THEN BEGIN 
           LAYER(GETLNAME(GETLAYER(obHd)));
           SETSELECT(obHd);
           HCENTER(obHd, x, y);
           SETVCENTER(x, y);
           SETZOOM(100); 
       END
       ELSE ALRTDIALOG('No such office, mate!'); 
    END;
END;

RUN(MyOfficeNow);

Link to comment

It would be great if the viewport name could show up in the shape pane of the OIP next to where it says "Viewport" or "Section viewport". You would still edit it in the data pane, but since one spends more time in the shape pane, you could see the name of the viewport while editing it and therefore have a better chance of remembering that name when you go looking for that particular viewport in the navigation palette.

It's not an issue when there's only one viewport on a sheet, but when there are many on a sheet or you have overlapping viewports it's easier to know their names and select them directly from the navigation palette when you need to.

Edited by Michael K
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...