Results 1 to 2 of 2

Thread: Model View Property Manipulation

  1. #1
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default Model View Property Manipulation

    Hi All,

    We currently use model view states to allow us to navigate through a building.
    Each view state will isolate all layers for each level.
    This works well enough but is notoriously difficult to manage and take a long time to set up.
    I would like to make some routines to assist with the setup and management of the views.

    This brings me to my problem:
    I have been attempting to use the DXF codes edit the properties however the (entmod) function does not appear to update the view properties.
    This particular routine is designed to update the view range of all views in the drawing based on the current zoom window.
    Any help would be much appreciated.

    I have included the code below:
    Code:
    (defun c:UpdateAllRanges ()
    	(command "-VIEW" "SAVE" "_TEMP1")
    	
    	(if (setq vProps (tblsearch "view" "_TEMP1"))
    		(setq vProps (list (assoc 40 vProps) (assoc 10 vProps) (assoc 41 vProps))))
    	(setq cView (tblnext "VIEW" T))
    	(while cView
    		(foreach tProp vProps
    			(setq cView (subst tProp (assoc (car tProp) cView) cView))
    		)
    		(entmod cView)
    		(setq cView (tblnext "VIEW"))
    	)
    	
    	(command "-VIEW" "DELETE" "_TEMP1")
    )

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Model View Property Manipulation

    From AutoCAD Help:http://help.autodesk.com/view/ACD/20...C-0D8C58F4C832
    entmod (AutoLISP)
    Remarks
    #3 - You cannot use the entmod function to modify a viewport entity.

Similar Threads

  1. Model Line Property- View Created
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2015-06-19, 05:40 PM
  2. Link property of line from the base view to all other view
    By Wish List System in forum Inventor Wish List
    Replies: 0
    Last Post: 2013-07-23, 01:49 PM
  3. Property lines in 3d view
    By Wagurto in forum Revit Architecture - General
    Replies: 8
    Last Post: 2010-04-30, 05:35 PM
  4. Problem Displaying Property Lines in 3D view
    By millerj in forum Revit Architecture - General
    Replies: 1
    Last Post: 2009-03-14, 05:44 PM
  5. View Property Instability
    By Alek Sutulov in forum Revit Architecture - General
    Replies: 1
    Last Post: 2004-02-15, 09:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •