AfmPopulateSelected

Syntax

(AfmPopulateSelected strPopulateFromTable
strPopulateToTable ssOfOwners [bPopulateNewItemsOnly] )

Comments

This function populates assets of one type within area assets of another.

strPopulateFromTable is the table of enclosed items, e.g. "em".

strPopulatetoTable is the table of container asset symbols, e.g. "rm".

ssOfOwners is a selection set of assets in the strPopulatetoTable.

bPopulateNewItemsOnly is an optional argument for populating only items that are not yet in the drawing.

Example

The following function populates employees to a selected set of cataloged rooms.

(defun c:popemtorm ()
(setq sset (ssget (list (cons 8 "RM$"))))
(if sset (AfmPopulateSelected "em" "rm" sset))
(princ)
)