Drawing Publishing

These functions provide AutoLISP interfaces into the Drawing Publishing object.

AfmDwgPubAddRule

Syntax

(AfmDwgPubAddRule strRuleName)

Comments

Adds a list of rule

s to publish to the drawing publishing object.

Example

(AfmDwgPubAddRule "AbQueryTextRm")

AfmDwgPubAddDrawing

Syntax

(AfmDwgPubAddDrawing strDrawingName)

Comments

Adds a specific drawing or drawings to the list of those to publish in the next invocation.

Example

(AfmDwgPubAddDrawing "hq18.dwg")

AfmDwgPubSetPublishWhich

Syntax

(AfmDwgPubSetPublishWhich nWhich)

Comments

Selects which drawings will be published by the Publish command.  Valid arguments are:

0 – Publish All

1 – Publish Current

2 – Publish Named

Example

(AfmDwgPubAddDrawing “hq18.dwg”)

(AfmDwgPubSetPublishWhich 2)

(AfmDwgPubPublish)

AfmDwgPubSetSuffix

Syntax

(AfmDwgPubSetSuffix strSuffix)

Comments

Sets the suffix to add to the drawing name when publishing drawings.  A suffix of ‘x’ will cause ‘hq17’ to be publishes as ‘hq17x.dwf’.

Example

(AfmDwgPubSetSuffix "x")

AfmDwgPubSetShowDialog

Syntax

(AfmDwgPubSetShowDialog bShowDlg)

Comments

Controls whether to show the publishing dialog to let users override the output folders.

Example

(AfmDwgPubShowDialog nil)

AfmDwgPubApplyRules

Syntax

(AfmDwgPubApplyRules)

Comments

Applies the current list of rules in the DrawingPublish object to the current drawing.

Example

(AfmDwgPubAddRule "AbHltRmxDp")

(AfmDwgPubApplyRules)

AfmDwgPubPublish

Syntax

(AfmDwgPubPublish)

Comments

Perform the drawing publishing according to the currently established parameters.

Example

(AfmDwgPubAddDrawing “hq18.dwg”)

(AfmDwgPubSetPublishWhich 2)

(AfmDwgPubAddRule “AbHltRmxDp”)

(AfmDwgPubSetSuffix "rmxdp")

(AfmDwgPubSetShowDialog nil)

(AfmDwgPubPublish)

Note: The drawing publishing process executes a Catalog Layer command when called from AfmDwgPubPublish. This catalog takes a long time to execute and is not needed in most instances. If you wish to disable the extra Catalog in the publishing process, use the following switch:
(setvar "users2" "suppressCatalog")
(afmdwgpubpublish whateverOptionsYouAreUsing)
(setvar "users2" "")