@spiceErrorCheck<EOL>def dasonw(fname, ftype, ifname, ncomch):
fnamelen = ctypes.c_int(len(fname))<EOL>ftypelen = ctypes.c_int(len(ftype))<EOL>ifnamelen = ctypes.c_int(len(ifname))<EOL>ncomch  = ctypes.c_int(ncomch)<EOL>handle  = ctypes.c_int()<EOL>fname   = stypes.stringToCharP(fname)<EOL>ftype   = stypes.stringToCharP(ftype)<EOL>ifname  = stypes.stringToCharP(ifname)<EOL>libspice.dasonw_(fname, ftype, ifname, ctypes.byref(ncomch), ctypes.byref(handle), fnamelen, ftypelen, ifnamelen)<EOL>return handle.value<EOL>
Internal undocumented command for creating a new DAS file

:param fname: filename
:type fname: str
:param ftype: type
:type ftype: str
:param ifname: internal file name
:type ifname: str
:param ncomch: amount of comment area
:type ncomch: int
:return: Handle to new DAS file
:rtype: int