Save downloaded file

This is an example for vdWebControl base actions


Description
This is a cad editor which can open,view,edit,print and save drawings.
Also by using the right sidebar we can change the active properties that are used.

File button
1) Choose drawing :: Choose a .vds file from the disk.
2) OpenUrlFile :: Open a .vds uploaded drawing by it's url path.
3) New :: New .vds drawing.
4) Save :: Save drawing as .vds file by downloading it in downloads folder by default.
5) Print :: Print drawing in a new html page.

View button
1) Wire2d :: Set wire2d view mode.
2) Wire3d :: Set wire3d view mode.
3) Shade :: Set shade view mode.
4) ShadeWebGl :: Set shadeWebGl view mode.
5) Render :: Set render view mode.
6) Redraw :: Redraw the whole drawing.

3DViews button
1) Top :: Top view.
2) Bottom:: Bottom view.
3) Right :: Right view.
4) Left :: Left view.
5) Front :: Front view.
6) Back :: Back view.
7) NE :: NE view.
8) NW :: NW view.
9) SE :: SE view.
10) SW :: SW view.

Draw button
1) Line :: Draw a new line.
2) Polyline:: Draw a new polyline.
3) SPline :: Draw a new Spline.
4) Rect :: Draw a new rectangle.
5) Arc :: Draw a new arc.
6) Circle :: Draw a new circle.
7) Text :: Draw a new text.
8) Image :: Draw a new image (which already exist in the drawing).
9) Block :: Draw a new block (which already exist in the drawing).
10) Hatch :: Draw a new hatch.
11) Dimension :: Add a new dimension block to the document.

Edit button
1) Erase :: Erase the selected entity.
2) Move :: Move the selected entity.
3) Copy :: Copy the selected entity.
4) Scale :: Scale the selected entity.
5) Rotate :: Rotate the selected entity.
6) Undo :: Undo the last item stored in the undo list.
7) Redo :: Redo the last item stored in the redo list.
8) Regen :: Regen the whole drawing.

Inquiry button
1) Distance :: Show the distance line between two points.
2) GetPointId :: Show the coordinates(x,y) of the clicked point.

Image icons
Most used in touchMode but also works properly in computer mode.
1) CursorIcon :: When selected activates user action.
2) PanIcon :: When selected activates panning action.
3) Rotate3dIcon :: When selected activates 3d rotation by one finger.
4) ZoomIcon :: When selected activates zoomIn/zoomOut action by one finger.
5) ZoomExtend :: When selected zoomExtends the drawing.

Right sidebar Options
1) Layout :: Layouts of the drawing.
2) Layers :: Layers of the drawing.
3) LineTypes :: Line types of the drawing.
4) LineTypeScale :: Set the linetype scale.
5) LineWeight :: Set the lineweight.
6) Tooltip :: Set the tooltip which all of the entities that they will be added will take it.
7) Color :: Set the color in (R,G,B,A) or byLayer.
8) OrthoMode :: Activate/Deactivate orthoMode.
9) OsnapMode :: Set tha active osnap(s).
10) Version :: VdWebControl version (year.dayOfTheYear.hours.minutes.version).




TextStyle :

TextJustify :

TextHeight :

TextValue :






OsnapMode

EndPoint

MidPoint

CenterPoint

Near

Insert

Node




HatchType

HatchPatterns

BackroundColor(R,G,B)

FillColor(R,G,B)

Scale

Angle

DrawBoundary






Blocks





Select an Image:


View

Layout

Layers

LineTypes

LineTypeScale

LineWeight

ToolTip

Color(R,G,B)

OrthoMode

PerspectiveMode

: