AutoCAD Architecture Customization

AutoCAD Architecture Customization

Reply
Distinguished Contributor
David_W._Koch
Posts: 11,056
Registered: ‎12-12-2003
Message 11 of 14 (177 Views)

Re: Door Schedules - Door Numbers

05-04-2004 04:31 AM in reply to: CMFG
If you know up front all the possible values you will be using in your schedule - for both automatic and manual properties - it is theoretically possible to create a formula that would assign a number to each permutation. The more columns you have in your schedule, the more complicated your formula would become and the harder it would be to manage it. I considered suggesting this in my last post but felt it would be so difficult to do and so easy to "break" that I did not do so.

If you pursue this path, be certain to set up the formula so that you assign a "warning" number to any door that has a value in any column that does not correspond to the values you anticipated. Every time you create or update your schedule, you could look for that number. If found, you could see which value was[were] not in the formula and either add it[them] to the formula or edit the door to eliminate the incorrect value.

--

David Koch
Autodesk Discussion Group Facilitator
Contributor
CMFG
Posts: 14
Registered: ‎04-23-2004
Message 12 of 14 (177 Views)

Re: Door Schedules - Door Numbers

05-04-2004 08:08 AM in reply to: CMFG
David,

I was thinking that I could try to "search" the doors in the TablesSelection and use a "IF [Current Door Property1] = [Existing Door1 Property1] Then Check [Existing Door Property2] Else check next door.... I could try to loop this until it finds a match or else assign it a new number. Does this sound feasible? Also, I can't seem to find a way to get the info (i was thinking about using handles) for the doors in the table selection. Is there a command in VBScript to call these objects (handles) and assign them to a variable name?

The other idea (maybe easier) would be to "hack" the schedule properties itself. Maybe create a property for the schedule that keeps a running tab of how many lines it contains. When a permutation is added, then the [door number] is set to the [total sched line number] + 1. Maybe I'm grasping at straws (I like to call it tenatious) ;-)
Message was edited by: CMFG
*Scott Arvin
Message 13 of 14 (177 Views)

Re: Door Schedules - Door Numbers

05-04-2004 11:00 AM in reply to: CMFG
If you're using formula property defs to do this, I think you're on the wrong track. Formulas only allow you access to other property data on the object that contains the formula, and not on other objects. I would suggest creating a VBA command to do this. That way you can access all the doors in a drawing and get and set property information on them. Scott Arvin Autodesk "CMFG" wrote in message news:33486805.1083683355712.JavaMail.jive@jiveforum2.autodesk.com... > David, > > I was thinking that I could try to "search" the doors in the TablesSelection and use a "IF [Current Door Property1] = [Existing Door1 Property1] Then Check [Existing Door Property2] Else check next door.... I could try to loop this until it finds a match or else assign it a new number. Does this sound feasible? Also, I can't seem to find a way to get the info (i was thinking about using handles) for the doors in the table selection. Is there a command in VBScript to call these objects (handles) and assign them to a variable name?
Valued Mentor
mdhutchinson
Posts: 2,291
Registered: ‎11-18-2003
Message 14 of 14 (115 Views)

Re: Door Schedules - Door Numbers

02-11-2013 07:34 PM in reply to: *Scott Arvin

I know it's been years, but wonder if you've been successful?

I was able to do this with a rather simple lisp and two related schedule styles.

Both schedules must have identical columns and sorting - the first schedule for display on the drawing and the last for use with the lisp. The latter schedule has the objects handle in the last column, gets exported to a text file, then read back in and evaluated with the lisp code. On reading back in, the properties are checked, when they change the 'part number' is incremented. Then the object handle is used to retrieve the object, and the  'part number' is edited automatically. 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.