Comments (4)
from pyautocad import Autocad
import array
acad = Autocad(create_if_not_exists=True)
points_2d = [0, 0, 1, 1, 2, 1]
points_double = array.array("d", points_2d)
acad.model.AddLightWeightPolyline(points_double)
points_3d = [0, 0, 0, 1, 1, 0, 2, 1, 0]
points_double = array.array("d", points_3d)
acad.model.AddPolyline(points_double)
from pyautocad.
from pyautocad import Autocad import array acad = Autocad(create_if_not_exists=True) points_2d = [0, 0, 1, 1, 2, 1] points_double = array.array("d", points_2d) acad.model.AddLightWeightPolyline(points_double) points_3d = [0, 0, 0, 1, 1, 0, 2, 1, 0] points_double = array.array("d", points_3d) acad.model.AddPolyline(points_double)
the result is a 2D Polyline... and not a 3D Polyline... ¿is it possible to get it 3D?
from pyautocad.
in the end how to choice the “closed”,when finish draw
from pyautocad.
in the end how to choice the “closed”,when finish draw
use Closed..
https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-5A604B98-B6DE-42C3-97D9-98B8CAEBB507
from pyautocad import Autocad
import array
acad = Autocad(create_if_not_exists=True)
points_3d = [0, 0, 0, 1, 1, 0, 2, 1, 0]
points_double = array.array("d", points_3d)
pline = acad.model.AddPolyline(points_double)
pline.Closed = True
from pyautocad.
Related Issues (20)
- Changing units
- typ = _vartype_to_ctype[self.vt & ~VT_ARRAY] HOT 1
- Pyautocad: error using pyautocad library on windows (python 3.8) HOT 1
- import dxf from path and paste it on my draw
- How to read existing dwg file using autocad?? HOT 1
- why my script doesn't iterate all text objects
- Plot automation HOT 2
- change line weight and color HOT 2
- _ctypes.COMError: (-2147467262, 'No such interface supported', (None, None, None, 0, None)) HOT 1
- delete all objects error
- How to get coordinates from picked points?
- how to access to all methods and classes of 'pyautocad' library HOT 1
- Open DWG files and manipulate them HOT 3
- Use pyautocad control AutoCAD2016 issues HOT 2
- (-2147352567, '예외가 발생했습니다.', ('키를 찾을 수 없습니다.', 'AutoCAD.Application', 'C:\\Program Files\\Autodesk\\AutoCAD 2020\\HELP\\OLE_ERR.CHM', -2145386476, None)) HOT 6
- Running functions that takes in symbol as input HOT 9
- My sorce can run Ok ,but VScode tell me issues
- How the lasted versions of the AutoCAD that the pyautocad can be used ?
- To get the coordinate of the intersection point of a grid by clicking the point HOT 1
- AttributeError: ActiveDocument HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyautocad.