File
Edit
View
Draw
Modify
Dimension
Tools
0
Drawing1.cad
ENT 0
SEL 0
Back to Ovis
Line
PLine
Arc
Circle
Rect
Ellipse
Spline
Draw
Text
Hatch
DimLin
DimRad
Annotate
Move
Copy
Rotate
Scale
Mirror
Modify
Offset
Trim
Array
Fillet
Erase
Extend
Edit Tools
Z-Ext
Zoom+
Zoom-
Pan
Navigate
PDF
SVG
Save
Export
Model
Layout 1
Model
X
Y
Command:
X: 0.0000 Y: 0.0000 Z: 0.0000
GRID
SNAP
ORTHO
POLAR
OSNAP
OTRACK
DYN
LWT
OVIS 2 CAD
Props
Layers
No selection
Vis
Name
Col
Ovis CAD — ${exportPaperSize} ${svgOut}`); printWin.document.close(); printWin.focus(); setTimeout(()=>{ printWin.print(); },600); } } // ───────────────────────────────────────────────────────── // CURSOR // ───────────────────────────────────────────────────────── const dot=document.getElementById('cur-dot'), ring=document.getElementById('cur-ring'); window.addEventListener('mousemove',e=>{ dot.style.left=e.clientX+'px';dot.style.top=e.clientY+'px'; ring.style.left=e.clientX+'px';ring.style.top=e.clientY+'px'; }); document.querySelectorAll('[data-tip],.mi,.rbtn,.rbtn-sm,.tbtn,.ptab,.exp-size-btn,.back-btn,.lbtn,.sub-item,.ctx-item,.sug-item,.btn-prim,.btn-ghost').forEach(el=>{ el.addEventListener('mouseenter',()=>document.body.classList.add('hov')); el.addEventListener('mouseleave',()=>document.body.classList.remove('hov')); }); // ───────────────────────────────────────────────────────── // BACK TO OVIS // ───────────────────────────────────────────────────────── function confirmBack(){ if(entities.length>0) return confirm('Leave and go back to Ovis? Any unsaved work will be lost.'); return true; } // ───────────────────────────────────────────────────────── // INIT // ───────────────────────────────────────────────────────── entities.push( {id:++entityIdCount,type:'rect',layer:'A-Dinding',color:'bylayer',x:-400,y:-250,w:800,h:500}, {id:++entityIdCount,type:'rect',layer:'A-Dinding',color:'bylayer',x:-380,y:-230,w:760,h:460}, {id:++entityIdCount,type:'circle',layer:'A-Jendela',color:'bylayer',cx:0,cy:0,r:120}, {id:++entityIdCount,type:'circle',layer:'A-Jendela',color:'bylayer',cx:0,cy:0,r:80}, {id:++entityIdCount,type:'line',layer:'S-Grid',color:'bylayer',p1:{x:-500,y:0},p2:{x:500,y:0}}, {id:++entityIdCount,type:'line',layer:'S-Grid',color:'bylayer',p1:{x:0,y:-350},p2:{x:0,y:350}}, {id:++entityIdCount,type:'arc',layer:'A-Pintu',color:'bylayer',cx:-300,cy:-150,r:80,startAngle:0,endAngle:90}, {id:++entityIdCount,type:'text',layer:'Teks',color:'bylayer',x:-80,y:180,text:'DENAH LANTAI 1',h:24,angle:0}, ); renderAll(); logCmd('OVIS 2 CAD ready. Type a command or click a tool.','ok'); logCmd('F7=GRID F8=ORTHO F3=OSNAP Del=ERASE Ctrl+Z=UNDO ZE=Extents'); logCmd('Tip: Export → PDF button (ribbon) to export A0–A4');