Jump to content

Recommended Posts

Posted (edited)

Hello,I have a code written in python.

Is it possible to create such a connection using visualisp ?

 

import pyodbc
conn = pyodbc.connect('Driver={SQL Server};'
                      'Server=TEST;'
                      'Database=DTEST;'
                      'Trusted_Connection=yes;')

cursor = conn.cursor()

 

Edited by jan_ek
Posted

I don't know much about python, myself.

 

I do know that the way Civil3D can link excel data to the drawing does seem more efficient and more straightforward (especially for point cloud data) but it just depends on what you're trying to do.  In your case you appear to be trying to link database content to the CAD file.

 

I do recall alot of of LISP discussions on this particular topic. (for Autocad).

 

I did run across the following - which may or may not help.

 

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/implementing-python-to-autocad/td-p/6858701

 

https://through-the-interface.typepad.com/through_the_interface/2009/03/using-ironpython-with-autocad.html

 

ChriS

Posted (edited)

If you google Autocad has the ability to use SQL, so you can say open a ESRI database, same with Access. It has been around for years.

 

image.thumb.png.afbbd0175a30773fca689ab2016c18a7.png

Edited by BIGAL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...