Jump to content

NonPlot / Defpoints


HP Sauce

Recommended Posts

I think the operative words here are ?human" & "error?.

Whatever, if one makes a menu command of the following script (use at your own risk) and assigns CMD-P to it, instead of the normal Print -command, there is less room for error.

PROCEDURE HideNoPlotAndPrint; { ? Petri Sakkinen 2009 }
CONST
classToHide = 'NoPlot';
VAR 
layerName : STRING; 
layerHd : HANDLE; 
ok : BOOLEAN; 

PROCEDURE HideIt (h :HANDLE);
BEGIN 
IF (GETTYPE(h)=122) THEN ok := SETVPCLASSVISIBILITY(h, classToHide, -1); 
END; 

BEGIN 
HIDECLASS(classToHide); 
layerHd := FLAYER; 
WHILE NOT(layerHd=NIL) DO BEGIN 
	IF (GETOBJECTVARIABLEINT(layerHd, 154)=2) THEN BEGIN
			layerName := GETLNAME(layerHd); 
			FOREACHOBJECT(HideIt, L=layerName);
	END; 
	layerHd := NEXTLAYER(layerHd); 
END; 
DOMENUTEXTBYNAME('Print', 0);
END; 

RUN(HideNoPlotAndPrint);

Link to comment
  • 11 months later...

Sorry to arrive so late for this topic.

I used to use ?defpoints? a lot and would leave little notes for myself, like why this modification was made, sizes of structural members, ?note to self?, etc. In fact I pretty much used it in the way that I would use construction lines on a drawing board, but was able to leave them there for reference instead of rubbing them out!

As we are making more use of live elevations and sections, with annotations in the viewport it would be nice to have these rough notes visible in the viewport without the risk of them ever printing/plotting.

The CMD-P (Ctrl+P for us) script looks handy, but what would happen if we use the File > Print option instead of a keyboard shortcut? Presumably this would bypass the script!?!

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...