Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. @zaphod That's a good one, thank you!
  3. the system/drawing variable "fieldeval" is set to 4, it needs to be set to 31 in order to visibly see it update. Drawing2.dwg
  4. Today
  5. I can't remember what I ended up doing. My issue was very similar and involved linetypes with shape files. Please post back here if Autodesk resolves the issue.
  6. I got myself a workaround that seems to work for me. Made a LISP (long live AI) that stores all layer and linetype combinations. Sets everything to 'Continious', purges all linetypes, that reloads the linetypes and that restores the default settings. This seems to do the trick to get rid off all 'corrupted' linetype definitions, and 'reloading' is replaced with a load function.
  7. You need to post a true copy of what ever your starting with as you hinted a csv or a pdf. There is nom problem reading a csv and inserting all the borehole blocks at correct location, yes can look at other details so can insert different blocks when required, That is the sort of information you are not providing. eg a csv file like this. I can see need to compare your look up table that you previously provided. Once this sort of information is posted then a complete solution can be provided. Not just questions. Same in another post by you a question is asked but you provide no details. Must provide more information in future. Bore 1 X,Y 0.5,Green dirt 1.2,Black dirt 2.4,Blue dirt Bore 2 X,Y 1.3,Green Dirt 2.2,Black dirt Bore 3 and so on
  8. Yesterday
  9. Last week
  10. @Aftertouch I thought this may be a bug. I think there may be other bugs since 2025 version, I had some issues last year with linetypes. I'll play around with it next week when I am at work and have AutoCAD 2026 to test. @tombu I have the other one in that thread from Cad Studio, I'll have to try yours out when I get to work next week.
  11. Did the reload shx work ? It may take some time for a bug fix.
  12. BIGAL

    GNSS on AutoCAD

    Yep found the formula, also found some Excel convert formula. Did find even a lisp link. Try this in google. formula for convert latitude and longitude to northing and easting using lisp
  13. @tombu Ive had contact with AutoDesk: Hello Michel, I am writing to confirm that I have reviewed the issue you reported and replicated the results you described (see this video:https://go.screenpal.com/watch/cOieX2nU2gH ). I want to assure you that we've reported it to our development team, and they're currently investigating it. The resulting internal development ticket is linked to this technical support case and has the following Issue ID/subject: "CPR-2262 Reloading complex linetype without SHX shape does not update line display". AutoCAD confirmed that this issue is present since AutoCAD 2025 version.
  14. Have you tried saving, closing and reopening the drawing? I retired a few years ago and never saw the latest version. Here's a link to a lisp that will output the linetype definition of a selected line to the command line. I wrote it to extract linetypes I liked from drawings by others to add to my acad.lin file: https://forums.autodesk.com/t5/autocad-forum/export-linetype-to-acad-lin/m-p/11945136#M36909 which is why I called it LT_thief.lsp It will output the actual current linetype definition of a selected line to the command line including the shape references.
  15. PGia

    GNSS on AutoCAD

    Thanks for your interest. @BIGAL: To transform coordinates from LL to UTM, you only need to know the UTM zone, the hemisphere (N/S), and the datum (WGS84, ETRS89, Hayford, Clarke, etc.). The central meridian scale factor in the UTM system is always 0.9996. I usually work within UTM zones 31N, 32N, and 33N. However, the code should be able to return UTM coordinates for any location simply by specifying the UTM zone, hemisphere, and datum as parameters
  16. Hi All, thanks for the replies. @tombu That is exactly the issue. I removed the SHAPE reference from the linetype, reload the linetype. I see that the linetype is changed a bit, but the SHAPE keeps being shown. Even when i check the linetype definition in the DWG, the SHPAE reference is gone there, but still visualy there. Look, there are my definitions: Video attatched with my relaoding action. when i load the WITHOUT.LIN in a NEW drawing. the linetype is just fine... In the last sec off the video i do a REA command, and you see the linetype presentation change a bit. Most anoying... in AutoCAD 2023 this works just fine... looks like an AutoCAD 2027 error. Sample.mp4
  17. You can have multiple references to the same drawing with different Layer Properties. I've done it many times. You could insert the same XREF drawing into one of your project drawing with a different name, modify it's layer properties then copy each of them into your project drawings. You could also define Layer States in the XREF drawing for both Layer States in the XREF drawing then insert and name each of them into one of your project drawings then just copy each of those inserts to the rest of your project drawing.
  18. Did you regen the drawing? Shapes are referenced by linetypes not defined by them. Whatever Shapes defined in the drawing would still be there. Did you remove the Shape references in the linetype definition before reloading it?
  19. Just a maybe reload the shx while you sort out what is going on. Are your shx files and custom .lin files in a support path ? That may be why they are not reloading. (command "._LOAD" "C:\\Path\\To\\YourFile\\custom.shx") or (command "._LOAD" "Custom.shx") ; tested this Bricscad V25
  20. BIGAL

    GNSS on AutoCAD

    The lat long convert is out there I have used one for here in AUS, the formula behind it is the same I think for any where in the world, but inside it is numerous values that depend on your location in the world, something like 8. values can be like 0.9987999 scale factor. So we need @PGia to tell us where she/he is in the world and what zones are relevant. Will do a quick look for the formula.
  21. Hi, 1-I create dwg files myself 2-Somtimes I receive lab result just pdf sometimes I received excle and pdf anyway I can change pdf to CSV online(easy) 3-I can ask AI for change to CSV Or exel
  22. Windows XP came out in late 2001, so that would be Windows 3.1 which came out in 1992. Best bet may be set back up with the Virtual XP, if you are determined. You might try Longbow Reviver I am with BIGAL on this though, try something else less costly than AutoCAD if the price of AutoCAD is too much, some also have a monthly option for infrequent use. LibreCAD is free 2D CAD, but basic, and FreeCAD is like it's name, Free, but 3D CAD.
  23. I don't have AutoCAD 2027, but it may show up in AutoCAD 2026. I will do some checking when I get back to work next week. You should post your script and your shape linetypes that are an issue. You could see if a LISP works for you Lee Mac has one... https://lee-mac.com/loadlinetype.html. Here is an example of using loadlinetype.lsp in a Macro... You may want to contact Autodesk, they may know about the issue or at least would need to know.
  24. GLAVCVS

    GNSS on AutoCAD

    Thanks, @BIGAL You're right: it's probably necessary to solve the problem of transforming latitude/longitude to UTM. I might review the code to publish a more complete version. Or maybe someone else will do it before me
  25. Hi All, I just moved from AutoCAD 2023 to AutoCAD 2027. My script that reloads some linetypes seems to fail in this version. Afer soms manual testing, i noticed that the 'reload linetype' function looks totaly broken? Anybody else can confirm this? EDIT: After some more research, it seems like... when i got a linetype with a shape in it. and reload the linetype without the Shape. AutoCAD is still showing the SHAPE, like the removal of shapes isnt handled properly
  26. import traceback from pyrx import Ap, Db, Ed, Ge def validate_layout(source_db: Db.Database, target_db: Db.Database, layout_name: str): """Validates if the layout exists in source and is safe to write to target.""" source_layout_dict = Db.Dictionary(source_db.layoutDictionaryId()) if not source_layout_dict.has(layout_name): print(f"Layout '{layout_name}' not found in source drawing.") return False target_layout_dict = Db.Dictionary(target_db.layoutDictionaryId()) if target_layout_dict.has(layout_name): print(f"Layout '{layout_name}' already exists in target drawing.") return False return True def clone_layout_from_db(source_db: Db.Database, target_db: Db.Database, layout_name: str): """Clones a specified layout from a source database to a target database layout dictionary.""" if not validate_layout(source_db, target_db, layout_name): return False try: source_layout_dict = Db.Dictionary(source_db.layoutDictionaryId()) source_layout_id = source_layout_dict.getAt(layout_name) id_map = Db.IdMapping() id_map.setDestDb(target_db) source_db.wblockCloneObjects( [source_layout_id], target_db.layoutDictionaryId(), id_map, Db.DuplicateRecordCloning.kDrcIgnore, ) return True except Exception as e: print(f"Error encountered during cloning: {e}") traceback.print_exc() return False @Ap.Command() def doit(): layout_name = "S7" source_path = r"E:\Batch\06457 RE Submittal.dwg" target_db = Db.curDb() try: source_db = Db.Database.createFromDWG(source_path) if clone_layout_from_db(source_db, target_db, layout_name): print(f"Successfully cloned layout '{layout_name}'.") manager = Ap.LayoutManager() manager.updateLayoutTabs() except Exception as err: print(f"Failed to load or process source drawing: {err}")
      • 1
      • Like
  27. BIGAL

    GNSS on AutoCAD

    @GLAVCVS nicely done, yes need a convert lat long to XY, if you have CIV3D then yes can read lat long directly.
  28. Maybe its a language problem. Question 1 where are you getting the dwg from ? Question 2 why are you converting a pdf ? Question 3 can you not go back to who made the pdf and ask for the data say a CSV file The Excel means nothing to me I may have to give up without source data can not really help.
  29. Given that you indicate pre 2000 it is maybe time to upgrade. There is alternatives to Acad like Bricscad, Intellicad, Gstar to mention a few and much cheaper.
  1. Load more activity
×
×
  • Create New...