Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/26/2026 in all areas

  1. Perhaps it's easier than it seems. If it is an integrated receiver and Windows is able to obtain location data from it, then you should be able to access that data through the 'Windows Location API'. In that case, it should be possible to write a script to be executed from PowerShell that creates a loop to poll the receiver and write the data to a file. That loop would run in parallel with AutoCAD, allowing Lisp to read the new data as it is written. This method would be "intrusive", since it would occupy AutoCAD's command stream for as long as the command is running. However, there is another, less intrusive option that could operate in the "background": write the data to a system variable ('USERS#') and create a reactor that responds to changes in that variable: 'vlr-sysvar-reactor'. If the script is executed in a background PowerShell instance, you would also need to write a Lisp command capable of closing that instance when necessary. Once the script has been debugged, it could be incorporated into the Lisp code itself, making the whole solution completely self-contained. I haven't had much free time lately, but I'll try to investigate all of this a bit further.
    1 point
  2. Hello. You might have to code a listener on COM or TCP/IP to read nmea stream (depending how you cast your GNSS stream). It is possible with .net to code a plugin that read a com port or TCP/IP stream and then follow the GNSS position in many ways. Inserting Block to the last position Drawing any entities following the GNSS position. Soeren Le Berre
    1 point
  3. What are you trying to accomplish with this code? First and foremost vla-CopyObjects doesn't support Layouts in the manner you are attempting, AFAIK. You need to use -LAYOUT command or pretty much need to use LeeMac's Steal or at least determine the method he uses for Layouts, which if I am looking at it correctly uses the Block Table record maybe more as I quickly glanced at it.
    1 point
  4. Why not just use "Layout T" Template it asks for the dwg and which layout i have always used it and no problems. Can run as a (command
    1 point
  5. https://www.lee-mac.com/steal.html (Steal "C:\\My Folder\\MyDrawing.dwg" '(("Layouts" ("Page1" "Page2"))))
    1 point
  6. I worry that information will become like entertainment. We used to have a few TV channels, they were free, and we trusted their information. Then came cable, which grew into a mess of garbage that came through one provider, so you paid for things you mostly didn't want. Then came streaming, which is turning into a handful of providers with even more garbage, and you pay for each provider. AI may turn out like that: a few providers, with answers of questionable quality, at prices we can't afford. What would make sense to me is to create repositories of knowledge, curated by an AI. As it is, you have to ask similar questions, and the AI starts from scratch every time. Wouldn't it make more sense to treat the AI like someone with institutional knowledge? If you had a repository for AutoLISP code, for instance, all of us could contribute to it and maintain it. You might have to pay for your answer, but you would know it was correct and useful.
    1 point
  7. As an dilettante, I want to say that AI exists only thanks to professionals like you. All the training materials and a lot of codes are written by real people. Therefore, all the applause is for you and only for you!!!
    1 point
  8. Hi, everyone, My name is Lĩnh, from Vietnam. I've done the initial release of an app to unfold a Solid to paper layout. I am waiting the Autodesk App Store to publish it but these days the store takes very long to review anything. It is a free app. Purposes to create it are to master the polyline and 3d geometry programming technique in AutoCAD, and to promote my custom programming service. I will be very happy if someone like it, use it, or point out the direction for it progress futher. Currently I see I can use it to make some toy in paper for my son Also, I see I can make an web app out from it via Forge: you upload your drawing with the 3D model to the web then the web return the unfold layouts for you to process further. Anyway, currently, it is only available as a bundle to install to your local desktop PC. The 7cad 3D Unfold.bundle.zip download link is here: https://1drv.ms/u/s!ArVZkS2ji0h0yoIU9FPZCKVnXfOSUA?e=g6KjRa --------------------- To install, just unzip it to the C:\ProgramData\Autodesk\ApplicationPlugins folder. That is one of default locations for all addin for AutoCAD. 1st Command: 7cad_Unfold: It has 2 tabs. The General Tab is for general shape. The second tab is for revolve shape which the unfold layout should be arrange smarter. 2 other commands are 7cad_FoldUp and 7cad_CutOut. FoldUp is just a demonstration command, animate the Unfold-FoldUp routine to check if everything are fit as expect. CutOut command is to join pieces together, like union command in AutoCAD, so you have cutout polylines ready for print. Thank you, Lĩnh The General Unfold routine is like this:
    1 point
×
×
  • Create New...