View Full Version : Lines from Rhino to Autocad
sailor
21st Mar 2007, 07:38 pm
Hi Friends,
I would like to import the lines according to 0,0,0 coordinate from Rhino to Autocad automatically. This program must be open the Autocad drawing after importing the lines. How I can success this? I know that Rhino is a opensource program, which language uses Rhino to edit it?
Thanks
f700es
21st Mar 2007, 09:06 pm
No, Rhino is not OpenSource. The file format is opensource not the application.
TedKyte
22nd Mar 2007, 04:41 am
Hi Friends,
I would like to import the lines according to 0,0,0 coordinate from Rhino to Autocad automatically. This program must be open the Autocad drawing after importing the lines. How I can success this? I know that Rhino is a opensource program, which language uses Rhino to edit it?
Thanks
Hi sailor...
If you just do a "save as" and select Autocad dwg format it will import into Autocad where it was created in Rhino.
So, 0,0,0 in Rhino is the same in Autocad.
sailor
22nd Mar 2007, 10:42 pm
Hi sailor...
If you just do a "save as" and select Autocad dwg format it will import into Autocad where it was created in Rhino.
So, 0,0,0 in Rhino is the same in Autocad.
Hi TedKyte,
I want to do this by putting a button on Rhino toolbar, do it automatically by pressing only once:) But how?
TedKyte
22nd Mar 2007, 11:57 pm
Hi TedKyte,
I want to do this by putting a button on Rhino toolbar, do it automatically by pressing only once:) But how?
Well I'm not really sure what you want, but if you just put the word "Insert" on a button it will pop up the dialog bog to select the file you want to insert.
TedKyte
23rd Mar 2007, 01:42 am
Hi TedKyte,
I want to do this by putting a button on Rhino toolbar, do it automatically by pressing only once:) But how?
You can put this in a button:
!
-insert
F
C:\test.3dm
O
enter
0,0,0
1
0
change the "C:\test.3dm" to whateve file you want to insert.
sailor
12th Jun 2007, 09:02 am
Actually my question was, like activeX controls between autocad and Microsoft Application Excell, could we succes to change data between Rhino and Autocad? Is there a possibility to talk to Autocad from Rhino? Thanks
sailor
1st Aug 2007, 01:03 pm
Hi Friends, I succeeded to export curves by VB scripting as .dwg files, but I havent opened that file that I made. I send you the codes that I wrote, please advance it together
------------------------------------------------
Sub SetPoints ()
Dim strcurveID
Dim mobjAutocad
Dim ThisDrawing
Rhino.unselectAllObjects ()
strcurveID = Rhino.GetObject("select a planar curve")
If Not Rhino.iscurve(strcurveID) Then
Rhino.Print (" you didnt select a curve!")
Exit Sub
End If
If Rhino.IsCurvePlanar(strcurveID) Then
If Not Rhino.isCurveClosed(strcurveID) Then
Rhino.CloseCurve(strcurveID)
Rhino.Print ("the curve you selected has been closed")
End If
Rhino.command ("_setpt 0,0,0")
Rhino.print ("the curve has been Transformed")
Rhino.SelectObject strcurveID
Rhino.command ("_Export deneme.dwg")
Rhino.print ("the curve has been exported")
Else
Rhino.print ("the curve you picked was Not planar")
End If
End Sub
-------------------------------------------
SEANT
11th Aug 2007, 04:26 pm
The subject of this thread is also receiving attention here:
http://www.cadtutor.net/forum/showthread.php?t=15343
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.