Chuyển đến nội dung
Diễn đàn CADViet
Đăng nhập để thực hiện theo  
Ayan

Export cross section separate dwg File

Các bài được khuyến nghị

I have an AutoCAD file containing multiple cross-sections.
Each cross-section has a BORDER (rectangle) around it.
There are layers such as:
CS (for NSL),
CL (center line).
I want:
Each cross-section within each BORDER to be exported as a separate DWG file.
The new files should retain the original coordinates.
I will provide an Excel or CSV file containing X=0 and Y values.

Chia sẻ bài đăng này


Liên kết tới bài đăng
Chia sẻ trên các trang web khác

Dear Ayan,

To ensure the automation tool works accurately with your current workflow, please provide the following sample files via a Google Drive link (please set the access to "Anyone with the link can view"):

Original DWG File: A sample drawing containing multiple cross-sections, each enclosed within a rectangular BORDER. Please ensure the layers CS (NSL) and CL (Center Line) are present.

Input Data (Excel/CSV): A sample file containing the list of cross-sections to be exported, including their corresponding X=0 and Y coordinates.

Output Sample: 1 or 2 sample DWG files as you expect them to be after export. I need to verify if the objects should remain at their original coordinates or if they need to be translated to a specific insertion point.

Having these samples will help me handle the coordinate logic correctly and automate the file naming process based on your data.

Regards, Hùng Mạnh Cường.

Chia sẻ bài đăng này


Liên kết tới bài đăng
Chia sẻ trên các trang web khác

Đại khái là rectang xuất ra thành tên bản vẽ nào đó được đánh dấu theo Ymin trong CSV thôi. Mình cần xem là so theo hàng hay cột chứ không viết lung tung. Bởi vậy cần có input output để loại bỏ những suy đoán không cần thiết. Nhiều lúc nhiệm vụ thiết kế làm chi tiết ra rồi mà viết còn sai nữa là.

 

Chia sẻ bài đăng này


Liên kết tới bài đăng
Chia sẻ trên các trang web khác
1 giờ trước, conghoa đã nói:

"The new files should retain the original coordinates." <--- Cái đoạn mô tả này đã rõ ràng rồi mà bác. 

Kệ nó thôi, mình đâu có vội gì. Mấy thứ này nhờ con chat viết một lúc là xong, mình chỉ cần copy nguyên đề bài là có code rồi.

Chia sẻ bài đăng này


Liên kết tới bài đăng
Chia sẻ trên các trang web khác

Tạo một tài khoản hoặc đăng nhập để nhận xét

Bạn cần phải là một thành viên để lại một bình luận

Tạo tài khoản

Đăng ký một tài khoản mới trong cộng đồng của chúng tôi. Điều đó dễ mà.

Đăng ký tài khoản mới

Đăng nhập

Bạn có sẵn sàng để tạo một tài khoản ? Đăng nhập tại đây.

Đăng nhập ngay
Đăng nhập để thực hiện theo  

×