「Javascript」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
編集の要約なし
 
(同じ利用者による、間の5版が非表示)
2行目: 2行目:
* まだJavascript始めました!な感じなので、用途は限定的といえる。(2013年現在)
* まだJavascript始めました!な感じなので、用途は限定的といえる。(2013年現在)
* LISPからだと (webload, uriOfHtml) で HTMLページをロードして JavaScriptコードを実行。
* LISPからだと (webload, uriOfHtml) で HTMLページをロードして JavaScriptコードを実行。
== AutoCAD 2014 Javascript (v1) API ==
http://app.autocad360.com/jsapi/v2/docs/index.html


<div class="mcol3">
<div class="mcol3">
[[Acad.DragStatus]]
* [[Acad.DragStatus]]
[[Acad.DrawJig]]
* [[Acad.DrawJig]]
[[Acad.DrawJig.update]]
* [[Acad.DrawJig.update]]
[[Acad.Editor.addCommand]]
* [[Acad.Editor.addCommand]]
[[Acad.Editor.cancelCommand]]
* [[Acad.Editor.cancelCommand]]
[[Acad.Editor.CurrentViewport]]
* [[Acad.Editor.CurrentViewport]]
[[Acad.Editor.CurrentViewport.dolly]]
* [[Acad.Editor.CurrentViewport.dolly]]
[[Acad.Editor.CurrentViewport.getViewport]]
* [[Acad.Editor.CurrentViewport.getViewport]]
[[Acad.Editor.CurrentViewport.getViewProperties]]
* [[Acad.Editor.CurrentViewport.getViewProperties]]
[[Acad.Editor.CurrentViewport.orbit]]
* [[Acad.Editor.CurrentViewport.orbit]]
[[Acad.Editor.CurrentViewport.pan]]
* [[Acad.Editor.CurrentViewport.pan]]
[[Acad.Editor.CurrentViewport.pointToScreen]]
* [[Acad.Editor.CurrentViewport.pointToScreen]]
[[Acad.Editor.CurrentViewport.pointToWorld]]
* [[Acad.Editor.CurrentViewport.pointToWorld]]
[[Acad.Editor.CurrentViewport.roll]]
* [[Acad.Editor.CurrentViewport.roll]]
[[Acad.Editor.CurrentViewport.setView]]
* [[Acad.Editor.CurrentViewport.setView]]
[[Acad.Editor.CurrentViewport.ucsToWorld]]
* [[Acad.Editor.CurrentViewport.ucsToWorld]]
[[Acad.Editor.CurrentViewport.worldToUCS]]
* [[Acad.Editor.CurrentViewport.worldToUCS]]
[[Acad.Editor.CurrentViewport.zoom]]
* [[Acad.Editor.CurrentViewport.zoom]]
[[Acad.Editor.CurrentViewport.zoomExtents]]
* [[Acad.Editor.CurrentViewport.zoomExtents]]
[[Acad.Editor.CurrentViewport.zoomWindow]]
* [[Acad.Editor.CurrentViewport.zoomWindow]]
[[Acad.Editor.drag]]
* [[Acad.Editor.drag]]
[[Acad.Editor.executeCommand]]
* [[Acad.Editor.executeCommand]]
[[Acad.Editor.executeCommandAsync]]
* [[Acad.Editor.executeCommandAsync]]
[[Acad.Editor.getAngle]]
* [[Acad.Editor.getAngle]]
[[Acad.Editor.getCorner]]
* [[Acad.Editor.getCorner]]
[[Acad.Editor.getDistance]]
* [[Acad.Editor.getDistance]]
[[Acad.Editor.getDouble]]
* [[Acad.Editor.getDouble]]
[[Acad.Editor.getEntity]]
* [[Acad.Editor.getEntity]]
[[Acad.Editor.getInteger]]
* [[Acad.Editor.getInteger]]
[[Acad.Editor.getKeywords]]
* [[Acad.Editor.getKeywords]]
[[Acad.Editor.getNestedEntity]]
* [[Acad.Editor.getNestedEntity]]
[[Acad.Editor.getPoint]]
* [[Acad.Editor.getPoint]]
[[Acad.Editor.getSelection]]
* [[Acad.Editor.getSelection]]
[[Acad.Editor.getString]]
* [[Acad.Editor.getString]]
[[Acad.Editor.isQuiescent]]
* [[Acad.Editor.isQuiescent]]
[[Acad.Enum_Projection]]
* [[Acad.Enum_Projection]]
[[Acad.ErrorStatus]]
* [[Acad.ErrorStatus]]
[[Acad.getId]]
* [[Acad.getId]]
[[Acad.isInteger]]
* [[Acad.isInteger]]
[[Acad.isNumber]]
* [[Acad.isNumber]]
[[Acad.Jig]]
* [[Acad.Jig]]
[[Acad.JigPromptAngleOptions]]
* [[Acad.JigPromptAngleOptions]]
[[Acad.JigPromptDistanceOptions]]
* [[Acad.JigPromptDistanceOptions]]
[[Acad.JigPromptGeometryOptions]]
* [[Acad.JigPromptGeometryOptions]]
[[Acad.JigPromptOptions]]
* [[Acad.JigPromptOptions]]
[[Acad.JigPromptPointOptions]]
* [[Acad.JigPromptPointOptions]]
[[Acad.JigPromptStringOptions]]
* [[Acad.JigPromptStringOptions]]
[[Acad.Matrix3d]]
* [[Acad.Matrix3d]]
[[Acad.OSet]]
* [[Acad.OSet]]
[[Acad.OSet.add]]
* [[Acad.OSet.add]]
[[Acad.Oset.clear]]
* [[Acad.Oset.clear]]
[[Acad.Oset.contains]]
* [[Acad.Oset.contains]]
[[Acad.Oset.getAllIds]]
* [[Acad.Oset.getAllIds]]
[[Acad.Oset.getCount]]
* [[Acad.Oset.getCount]]
[[Acad.Oset.getId]]
* [[Acad.Oset.getId]]
[[Acad.Oset.indexOf]]
* [[Acad.Oset.indexOf]]
[[Acad.OSet.remove]]
* [[Acad.OSet.remove]]
[[Acad.Point2d]]
* [[Acad.Point2d]]
[[Acad.Point3d]]
* [[Acad.Point3d]]
[[Acad.Promise]]
* [[Acad.Promise]]
[[Acad.Promise.then]]
* [[Acad.Promise.then]]
[[Acad.PromptAngleOptions]]
* [[Acad.PromptAngleOptions]]
[[Acad.PromptCornerOptions]]
* [[Acad.PromptCornerOptions]]
[[Acad.PromptDistanceOptions]]
* [[Acad.PromptDistanceOptions]]
[[Acad.PromptDoubleOptions]]
* [[Acad.PromptDoubleOptions]]
[[Acad.PromptDoubleResult]]
* [[Acad.PromptDoubleResult]]
[[Acad.PromptEditorOptions]]
* [[Acad.PromptEditorOptions]]
[[Acad.PromptEntityOptions]]
* [[Acad.PromptEntityOptions]]
[[Acad.PromptEntityOptions.addAllowedClass]]
* [[Acad.PromptEntityOptions.addAllowedClass]]
[[Acad.PromptEntityOptions.removeAllowedClass]]
* [[Acad.PromptEntityOptions.removeAllowedClass]]
[[Acad.PromptEntityResult]]
* [[Acad.PromptEntityResult]]
[[Acad.PromptIntegerOptions]]
* [[Acad.PromptIntegerOptions]]
[[Acad.PromptIntegerResult]]
* [[Acad.PromptIntegerResult]]
[[Acad.PromptKeywordOptions]]
* [[Acad.PromptKeywordOptions]]
[[Acad.PromptNestedEntityOptions]]
* [[Acad.PromptNestedEntityOptions]]
[[Acad.PromptNestedEntityResult]]
* [[Acad.PromptNestedEntityResult]]
[[Acad.PromptNumericalOptions]]
* [[Acad.PromptNumericalOptions]]
[[Acad.PromptOptions]]
* [[Acad.PromptOptions]]
[[Acad.PromptOptions.setMessageAndKeywords]]
* [[Acad.PromptOptions.setMessageAndKeywords]]
[[Acad.PromptPointOptions]]
* [[Acad.PromptPointOptions]]
[[Acad.PromptPointResult]]
* [[Acad.PromptPointResult]]
[[Acad.PromptResults]]
* [[Acad.PromptResults]]
[[Acad.PromptSelectionOptions]]
* [[Acad.PromptSelectionOptions]]
[[Acad.PromptSelectionResult]]
* [[Acad.PromptSelectionResult]]
[[Acad.PromptStatus]]
* [[Acad.PromptStatus]]
[[Acad.PromptStringOptions]]
* [[Acad.PromptStringOptions]]
[[Acad.Rectangle2d]]
* [[Acad.Rectangle2d]]
[[Acad.ResultValueType]]
* [[Acad.ResultValueType]]
[[Acad.SelectedObject]]
* [[Acad.SelectedObject]]
[[Acad.SystemVariableCollection]]
* [[Acad.SystemVariableCollection]]
[[Acad.SystemVariableCollection.getSystemVariable]]
* [[Acad.SystemVariableCollection.getSystemVariable]]
[[Acad.SystemVariableCollection.SystemVariable]]
* [[Acad.SystemVariableCollection.SystemVariable]]
[[Acad.SystemVariableCollection.SystemVariable.addEventListener]]
* [[Acad.SystemVariableCollection.SystemVariable.addEventListener]]
[[Acad.SystemVariableCollection.SystemVariable.postValue]]
* [[Acad.SystemVariableCollection.SystemVariable.postValue]]
[[Acad.SystemVariableCollection.SystemVariable.removeEventListener]]
* [[Acad.SystemVariableCollection.SystemVariable.removeEventListener]]
[[Acad.TaskDialog.showDeleteConfirmationTaskDialog]]
* [[Acad.TaskDialog.showDeleteConfirmationTaskDialog]]
[[Acad.TaskDialog.showTaskDialog]]
* [[Acad.TaskDialog.showTaskDialog]]
[[Acad.TaskDialogButton]]
* [[Acad.TaskDialogButton]]
[[Acad.TaskDialogResult]]
* [[Acad.TaskDialogResult]]
[[Acad.Transient]]
* [[Acad.Transient]]
[[Acad.Transient.addEventListener]]
* [[Acad.Transient.addEventListener]]
[[Acad.Transient.removeEventListener]]
* [[Acad.Transient.removeEventListener]]
[[Acad.TransientManager]]
* [[Acad.TransientManager]]
[[Acad.TransientManager.addTransient]]
* [[Acad.TransientManager.addTransient]]
[[Acad.TransientManager.eraseTransient]]
* [[Acad.TransientManager.eraseTransient]]
[[Acad.TransientManager.eraseTransients]]
* [[Acad.TransientManager.eraseTransients]]
[[Acad.TransientManager.getCursor]]
* [[Acad.TransientManager.getCursor]]
[[Acad.TransientManager.showTransients]]
* [[Acad.TransientManager.showTransients]]
[[Acad.TransientManager.updateTransient]]
* [[Acad.TransientManager.updateTransient]]
[[Acad.UserInputControls]]
* [[Acad.UserInputControls]]
[[Acad.Vector2d]]
* [[Acad.Vector2d]]
[[Acad.Vector3d]]
* [[Acad.Vector3d]]
[[Acad.ViewProperties]]
* [[Acad.ViewProperties]]
</div>
</div>


== AutoCAD 2015 で追加された javascript API==
== AutoCAD 2015 で追加された javascript(v2) API==
<div class="mcol2">
http://app.autocad360.com/jsapi/v2/docs/index.html
*[[Acad.Application]]
 
*[[Acad.Application.activedocument.addPalette]]
<div class="mcol3">
*[[Acad.Application.activedocument.capturePreview]]
* [[ACAD Namespace]]
*[[Acad.Application.activedocument.getContacts]]
* [[Acad.Application]]
*[[Acad.Application.activedocument.getHandle]]
* [[Acad.Application.activedocument.addPalette]]
*[[Acad.Application.activedocument.getObjectSet]]
* [[Acad.Application.activedocument.capturePreview]]
*[[Acad.Application.activedocument.highlight]]
* [[Acad.Application.activedocument.getContacts]]
*[[Acad.Application.activedocument.isCloudFileOwner]]
* [[Acad.Application.activedocument.getHandle]]
*[[Acad.Application.activedocument.loginA360]]
* [[Acad.Application.activedocument.getObjectSet]]
*[[Acad.Application.activedocument.saveSync]]
* [[Acad.Application.activedocument.highlight]]
*[[Acad.Application.activedocument.shareDrawing]]
* [[Acad.Application.activedocument.isCloudFileOwner]]
*[[Acad.Application.activedocument.startObserving]]
* [[Acad.Application.activedocument.loginA360]]
*[[Acad.Application.activedocument.stopObserving]]
* [[Acad.Application.activedocument.saveSync]]
*[[Acad.Application.activedocument.unhighlight]]
* [[Acad.Application.activedocument.shareDrawing]]
*[[ACAD.Application.addDocWindow]]
* [[Acad.Application.activedocument.startObserving]]
*[[Acad.Application.modalDialogCommit]]
* [[Acad.Application.activedocument.stopObserving]]
*[[Acad.Application.showHTMLDialog]]
* [[Acad.Application.activedocument.unhighlight]]
*[[Acad.Application.showModalDialog]]
* [[ACAD.Application.addDocWindow]]
*[[Acad.Bounds3d]]
* [[Acad.Application.modalDialogCommit]]
*[[Acad.CommandFlag]]
* [[Acad.Application.showHTMLDialog]]
*[[Acad.CursorType]]
* [[Acad.Application.showModalDialog]]
*[[Acad.DataItem]]
* [[Acad.Bounds3d]]
*[[Acad.DataItem.getProperties]]
* [[Acad.CommandFlag]]
*[[Acad.DataItemCollection]]
* [[Acad.CursorType]]
*[[Acad.DataItemCollection.addEventListener@eventname@fn]]
* [[Acad.DataItem]]
*[[Acad.DataItemCollection.eventname]]
* [[Acad.DataItem.getProperties]]
*[[Acad.DataItemCollection.getName]]
* [[Acad.DataItemCollection]]
*[[Acad.DataItemCollection.removeEventListener@eventname@fn]]
* [[Acad.DataItemCollection.addEventListener@eventname@fn]]
*[[Acad.DataItemCollectionManager]]
* [[Acad.DataItemCollection.eventname]]
*[[Acad.DataItemCollectionManager.getKnownCollection@colName@onComplete@onError]]
* [[Acad.DataItemCollection.getName]]
*[[Acad.DBEntity]]
* [[Acad.DataItemCollection.removeEventListener@eventname@fn]]
*[[Acad.DBEntity.getExtents]]
* [[Acad.DataItemCollectionManager]]
*[[Acad.DBEntity.getProperties]]
* [[Acad.DataItemCollectionManager.getKnownCollection@colName@onComplete@onError]]
*[[Acad.DragCursor]]
* [[Acad.DBEntity]]
*[[Acad.SystemVariable]]
* [[Acad.DBEntity.getExtents]]
*[[Acad.SystemVariable.postValue]]
* [[Acad.DBEntity.getProperties]]
*[[Acad.SystemVariable.setValue]]
* [[Acad.DragCursor]]
* [[Acad.SystemVariable]]
* [[Acad.SystemVariable.postValue]]
* [[Acad.SystemVariable.setValue]]
</div>
 
== AutoCAD 2016 の javascript(v3) API==
https://df-prod.autocad360.com/jsapi/v3/docs/index.html
 
<div class="mcol3">
* [[ACAD Namespace]]
* [[Acad.Application]]
* [[Acad.Application.activedocument.addPalette]]
* [[Acad.Application.activedocument.capturePreview]]
* [[Acad.Application.activedocument.getContacts]]
* [[Acad.Application.activedocument.getHandle]]
* [[Acad.Application.activedocument.getObjectSet]]
* [[Acad.Application.activedocument.highlight]]
* [[Acad.Application.activedocument.isCloudFileOwner]]
* [[Acad.Application.activedocument.loginA360]]
* [[Acad.Application.activedocument.saveSync]]
* [[Acad.Application.activedocument.shareDrawing]]
* [[Acad.Application.activedocument.startObserving]]
* [[Acad.Application.activedocument.stopObserving]]
* [[Acad.Application.activedocument.unhighlight]]
* [[ACAD.Application.addDocWindow]]
* [[Acad.Application.modalDialogCommit]]
* [[Acad.Application.showHTMLDialog]]
* [[Acad.Application.showModalDialog]]
* [[Acad.Bounds3d]]
* [[Acad.CommandFlag]]
* [[Acad.CursorType]]
* [[Acad.DataItem]]
* [[Acad.DataItem.getProperties]]
* [[Acad.DataItemCollection]]
* [[Acad.DataItemCollection.addEventListener@eventname@fn]]
* [[Acad.DataItemCollection.eventname]]
* [[Acad.DataItemCollection.getName]]
* [[Acad.DataItemCollection.removeEventListener@eventname@fn]]
* [[Acad.DataItemCollectionManager]]
* [[Acad.DataItemCollectionManager.getKnownCollection@colName@onComplete@onError]]
* [[Acad.DBEntity]]
* [[Acad.DBEntity.getExtents]]
* [[Acad.DBEntity.getProperties]]
* [[Acad.DragCursor]]
* [[Acad.DragStatus]]
* [[Acad.DrawJig]]
* [[Acad.DrawJig.update]]
* [[Acad.Editor.addCommand]]
* [[Acad.Editor.cancelCommand]]
* [[Acad.Editor.CurrentViewport]]
* [[Acad.Editor.CurrentViewport.dolly]]
* [[Acad.Editor.CurrentViewport.getViewport]]
* [[Acad.Editor.CurrentViewport.getViewProperties]]
* [[Acad.Editor.CurrentViewport.orbit]]
* [[Acad.Editor.CurrentViewport.pan]]
* [[Acad.Editor.CurrentViewport.pointToScreen]]
* [[Acad.Editor.CurrentViewport.pointToWorld]]
* [[Acad.Editor.CurrentViewport.roll]]
* [[Acad.Editor.CurrentViewport.setView]]
* [[Acad.Editor.CurrentViewport.ucsToWorld]]
* [[Acad.Editor.CurrentViewport.worldToUCS]]
* [[Acad.Editor.CurrentViewport.zoom]]
* [[Acad.Editor.CurrentViewport.zoomExtents]]
* [[Acad.Editor.CurrentViewport.zoomWindow]]
* [[Acad.Editor.drag]]
* [[Acad.Editor.executeCommand]]
* [[Acad.Editor.executeCommandAsync]]
* [[Acad.Editor.getAngle]]
* [[Acad.Editor.getCorner]]
* [[Acad.Editor.getDistance]]
* [[Acad.Editor.getDouble]]
* [[Acad.Editor.getEntity]]
* [[Acad.Editor.getInteger]]
* [[Acad.Editor.getKeywords]]
* [[Acad.Editor.getNestedEntity]]
* [[Acad.Editor.getPoint]]
* [[Acad.Editor.getSelection]]
* [[Acad.Editor.getString]]
* [[Acad.Editor.isQuiescent]]
* [[Acad.Enum_Projection]]
* [[Acad.ErrorStatus]]
* [[Acad.getId]]
* [[Acad.isInteger]]
* [[Acad.isNumber]]
* [[Acad.Jig]]
* [[Acad.JigPromptAngleOptions]]
* [[Acad.JigPromptDistanceOptions]]
* [[Acad.JigPromptGeometryOptions]]
* [[Acad.JigPromptOptions]]
* [[Acad.JigPromptPointOptions]]
* [[Acad.JigPromptStringOptions]]
* [[Acad.Matrix3d]]
* [[Acad.OSet]]
* [[Acad.OSet.add]]
* [[Acad.Oset.clear]]
* [[Acad.Oset.contains]]
* [[Acad.Oset.getAllIds]]
* [[Acad.Oset.getCount]]
* [[Acad.Oset.getId]]
* [[Acad.Oset.indexOf]]
* [[Acad.OSet.remove]]
* [[Acad.Point2d]]
* [[Acad.Point3d]]
* [[Acad.Promise]]
* [[Acad.Promise.then]]
* [[Acad.PromptAngleOptions]]
* [[Acad.PromptCornerOptions]]
* [[Acad.PromptDistanceOptions]]
* [[Acad.PromptDoubleOptions]]
* [[Acad.PromptDoubleResult]]
* [[Acad.PromptEditorOptions]]
* [[Acad.PromptEntityOptions]]
* [[Acad.PromptEntityOptions.addAllowedClass]]
* [[Acad.PromptEntityOptions.removeAllowedClass]]
* [[Acad.PromptEntityResult]]
* [[Acad.PromptIntegerOptions]]
* [[Acad.PromptIntegerResult]]
* [[Acad.PromptKeywordOptions]]
* [[Acad.PromptNestedEntityOptions]]
* [[Acad.PromptNestedEntityResult]]
* [[Acad.PromptNumericalOptions]]
* [[Acad.PromptOptions]]
* [[Acad.PromptOptions.setMessageAndKeywords]]
* [[Acad.PromptPointOptions]]
* [[Acad.PromptPointResult]]
* [[Acad.PromptResults]]
* [[Acad.PromptSelectionOptions]]
* [[Acad.PromptSelectionResult]]
* [[Acad.PromptStatus]]
* [[Acad.PromptStringOptions]]
* [[Acad.Rectangle2d]]
* [[Acad.ResultValueType]]
* [[Acad.SelectedObject]]
* [[Acad.SystemVariable]]
* [[Acad.SystemVariable.postValue]]
* [[Acad.SystemVariable.setValue]]
* [[Acad.SystemVariableCollection]]
* [[Acad.SystemVariableCollection.addEventListener]]
* [[Acad.SystemVariableCollection.getSystemVariable]]
* [[Acad.SystemVariableCollection.removeEventListener]]
* [[Acad.TaskDialog.showDeleteConfirmationTaskDialog]]
* [[Acad.TaskDialog.showTaskDialog]]
* [[Acad.TaskDialogButton]]
* [[Acad.TaskDialogResult]]
* [[Acad.Transient]]
* [[Acad.Transient.addEventListener]]
* [[Acad.Transient.removeEventListener]]
* [[Acad.TransientManager]]
* [[Acad.TransientManager.addTransient]]
* [[Acad.TransientManager.eraseTransient]]
* [[Acad.TransientManager.eraseTransients]]
* [[Acad.TransientManager.getCursor]]
* [[Acad.TransientManager.showTransients]]
* [[Acad.TransientManager.updateTransient]]
* [[Acad.UserInputControls]]
* [[Acad.Vector2d]]
* [[Acad.Vector3d]]
* [[Acad.ViewProperties]]
</div>
</div>

2015年7月2日 (木) 10:00時点における最新版

AutoCAD 2014 より導入された API

  • まだJavascript始めました!な感じなので、用途は限定的といえる。(2013年現在)
  • LISPからだと (webload, uriOfHtml) で HTMLページをロードして JavaScriptコードを実行。

AutoCAD 2014 Javascript (v1) API

http://app.autocad360.com/jsapi/v2/docs/index.html

AutoCAD 2015 で追加された javascript(v2) API

http://app.autocad360.com/jsapi/v2/docs/index.html

AutoCAD 2016 の javascript(v3) API

https://df-prod.autocad360.com/jsapi/v3/docs/index.html