Replies: 5 comments 2 replies
-
|
I’ve been thinking about this. Unfortunately, ARX/BRX, and by extension PyRx, must run in process. This makes it difficult for models to interact with CAD. I have no idea how an agent can interact with CAD effectively. You can run BricsCAD headless by using something like Some people have started working on AutoCAD MCP Servers. Maybe one could be modified to run PyRx scripts Fine tuning. I noticed that people are fine tuning models, I’ve seen one of the So far the best local model for programming in CAD is Finally. I’ve had really good results by uploading |
Beta Was this translation helpful? Give feedback.
-
|
A Warning about using LLMs for CAD, LLMs are trained on text. Pattern matching and predicting the next word. They have zero spatial awareness. I noticed this when playing around with a bounded plane. I would create a rotated bounded plane, all of the models stumbled creating a line to intersect. Probably the reason for the crazy clocks |
Beta Was this translation helpful? Give feedback.
-
|
@CEXT-Dan Me:
Devstral:
Me:
Devstral: import win32com.client
def PyRx():
"""
Function to get all object IDs from block table record in AutoCAD model space
Returns a list of object IDs
"""
try:
# Initialize AutoCAD application
acad = win32com.client.Dispatch("AutoCAD.Application")
doc = acad.ActiveDocument
# Get the block table
block_table = doc.Database.BlockTable
# Get the model space block table record
model_space = block_table.Item(acad.constants.acBlockTableRecord)
# Get all objects in model space
objects = model_space.GetObjects()
# Extract object IDs
object_ids = [obj.ObjectId for obj in objects]
return object_ids
except Exception as e:
print(f"Error: {e}")
return []
# Example usage
if __name__ == "__main__":
ids = PyRx()
print(f"Number of objects: {len(ids)}")
print(f"First 5 object IDs: {ids[:5]}")If you could share your approaches on how to specify communication more effectively I'd be glad. Best Seb |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Side note, I plan on fine tuning one of the models with PyRx, maybe I’ll give it a go sometime this summer, I need lots of samples and synthetic data. I'm thinking one of the 30b sized models. though I can try a 8b |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I am fumbling about with vibe coding in order to widen my horizon. The idea is to hand input/output information and to have scripts in between being generated.
Starting out with Mistral Vibe. Am trying steps as below
1#Studying API (https://cext-dan.github.io/CADPyRxDoc/)
2#Study examples (https://github.com/CEXT-Dan/PyRx/tree/main/PySamples)
3#Ask for examples and improve iteratively script through error messages
...
X#(Maybe) study sample project (https://github.com/gswifort/PyRx-sample-project)
A headless mode with output to the vibe environment would be useful. I do not know of any headless setups.
Hints and experiences are appreciated.
Best
Seb
Beta Was this translation helpful? Give feedback.
All reactions