Jump to content

Get Xref Name and use for plotting filename


Recommended Posts

Posted

Hello,

 

I'm new to this forum and LISP in general. Basically what I want to do is plot the model space of one of my sheet files as a .jpg image and have the name match a specific xref in that drawing. Can anyone help me with this? The code I have for plotting is as follows:

 

(defun c:plotjpg ( / )

(setvar "cmdecho" 1)

(command "-plot" "y" "" "PublishToWeb JPG.pc3" "Sun Hi-Res (1280.00 x 1600.00 Pixels)" "L" "N" "E" "F" "C" "Y" "monochrome.ctb" "N" "A" "" "N" "Y

(setvar "cmdecho" 0)

);end c:plotjpg

 

The specific Xref will contain "-A-" in the drawing name. I was told you can write code to search for the specific xref with the above match in the name and use it in to specify the filename of the image plotted, but I'm not sure how. Please help! Thank you in advance for your assistance!!

 

~asleafy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...