2009-01-16 12:54 PM
if StorySensitive then project2 3,270,1 else ...which works fine to get a top-down view of the model.
if StorySensitive and GLOB_CONTEXT = 2 then add 0,0,GLOB_CUTPLANES_INFO[1]+GLOB_CSTORY_ELEV cutplane del 1 endifThere is a matching bit of code at the end of the 3D Script:
if StorySensitive and GLOB_CONTEXT = 2 then cutend endifThe problem comes up when I move to different stories in the file (using the Project Map or View Map). In order to see the effect of the script properly, I need to use the ALT-REBUILD command (Rebuild and Regenerate) manually each time I change to a new story. If I do not do this, the object script is not reinterpreted as I change stories. The object looks the same on each story unless I trigger the regeneration.
2009-01-16 01:23 PM
2009-01-16 01:30 PM
2009-01-17 12:57 AM
2009-01-17 09:07 PM
2009-01-22 07:57 AM
if StorySensitive and GLOB_CONTEXT = 2 then add 0,0,GLOB_CUTPLANES_INFO[1] + GLOB_CSTORY_ELEV - GLOB_HSTORY_ELEV cutplane del 1 if CutBelow then cutbottom = max(GLOB_CUTPLANES_INFO[3]+GLOB_CSTORY_ELEV-GLOB_HSTORY_ELEV,GLOB_CUTPLANES_INFO[4]) add 0,0,cutbottom mulz -1 cutplane del 2 endif endif ! STEP PYRAMID for testing ft=1'-0" steps=zzyzx/ft for i=1 to steps block i*ft,i*ft,ft addz ft next i del steps ! End of STEP PYRAMID if StorySensitive and GLOB_CONTEXT = 2 then cutend if CutBelow then cutend endif endifNote that StorySensitive is a parameter to choose whether the object should be cut based on the Floor Plan Cut Plane - if it's not set then the object will be invariant for all stories. CutBelow is a parameter to choose whether to remove the underside of the object below the current story limit (or the Absolute Display Limit, whichever is more restrictive).
IF AC3D_SHOW3D THENand the final section goes at the very end of the 3D script.
dummyvar = GLOB_CSTORY_ELEV project2 3,270,1If, on the other hand, one wants to have the option of using the LINE2 and HOTSPOT2 statements from the 3DS import (or any other parametric scripting), then the beginning of the 2D script becomes:
if StorySensitive then dummyvar = GLOB_CSTORY_ELEV project2 3,270,1 end endifwith the rest of the original 2D GDL code from the import left intact.
2014-03-10 07:23 PM
2014-03-11 07:28 AM
2018-04-09 10:42 PM