乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 7|回复: 0

[编程交流] data extraction lisp - backgro

[复制链接]

5

主题

10

帖子

5

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-5 23:57:50 | 显示全部楼层 |阅读模式
Hi
 
i have a lisp i have set up for the office that runs a pre-configured data extraction (dxe) file. the purpose of this lisp is to insert a table in the drawing that shows attributes from a specific block that contains a couple of attributes.
 
the only way i have been able to get the routine to work is to first do a background save to a specifically named file on the server (dxtemp file.dwg).. the dxe file then always references this file and for the most part works amazingly.
 
the issue i am having is that if a user does not first save the file they are working on - when the background (._save) happens, it opens the dxtemp file.dwg on their screen which in turn means that on occasions where this happens, someone else is unable to run the command as the dxtemp file is already open.
 
i ask if anyone knows a way to make the ._save always background, even if the file running it has not previously been saved - ie still called Drawing1.dwg etc.
 
here is my current code
  1. (defun c:Atable (/ pt1)(SETVAR "cmdecho" 0)(command "._save" "V:/E-Library/Autocad/02 ACAD Settings/data extraction/DXTEMP FILE.dwg" "y") (princ "\nSelect point to insert table")(setq pt1 (getpoint))(command "-dataextraction" "V:/E-Library/Autocad/02 ACAD Settings/data extraction/DATAEXTRACT.dxe" pt1)(dictremove (namedobjdict) "ACAD_DATALINK")(princ))
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 22:41 , Processed in 0.563365 second(s), 54 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表