Search found 11 matches

by kinoy
Fri Apr 14, 2017 7:52 am
Forum: QCAD 'How Do I' Questions
Topic: Finding Infopostion and inforelpostion of object through ecmascript
Replies: 5
Views: 5060

Re: Finding Infopostion and inforelpostion of object through ecmascript

Thanks for reply. I have attached the Image of rectangle from the gui tool. The rectangle shows the intersection point (5,1) as the infoposition when we select the line or the point. I have a requirement from the client that with out using the gui I should somehow get the insersection point of the I...
by kinoy
Thu Apr 13, 2017 9:51 am
Forum: QCAD 'How Do I' Questions
Topic: Finding Infopostion and inforelpostion of object through ecmascript
Replies: 5
Views: 5060

Re: Finding Infopostion and inforelpostion of object through ecmascript

Thank you for the reply. I am not using the gui tool.I am using qcad through command line execution. I am creating an ecma script which is reading a dgn file and is exporting it to svg file.When doing export functionality I am logging certain functionalities . Along with them I would also want to lo...
by kinoy
Tue Apr 11, 2017 7:24 am
Forum: QCAD 'How Do I' Questions
Topic: Finding Infopostion and inforelpostion of object through ecmascript
Replies: 5
Views: 5060

Finding Infopostion and inforelpostion of object through ecmascript

Is there any way through ecmascript we could find the coordinates or the infoposition and infopositionrel of the loaded object.I would need to log the infopostion of object in the imported dgn file.If I could get the methods signature with respect to infopostion and infopositionrel I could get the v...
by kinoy
Thu Apr 06, 2017 10:58 am
Forum: QCAD 'How Do I' Questions
Topic: Logging or getting xy coordinates from the dgn file
Replies: 2
Views: 3326

Re: Logging or getting xy coordinates from the dgn file

Hi Thanks for the reply. Is there any way through ecmascript we could find the coordinates or the infoposition and infopositionrel of the loaded object.
by kinoy
Wed Apr 05, 2017 2:10 pm
Forum: QCAD 'How Do I' Questions
Topic: Logging or getting xy coordinates from the dgn file
Replies: 2
Views: 3326

Logging or getting xy coordinates from the dgn file

I am writing ecmascript to export the dgn file to svg file and it is exporting correctly. I would also want to get the xy coordinates of the starting point of the file image to be logged. Is there any method to extract the information from the dgn file. I have attached the image. I do want to get th...
by kinoy
Tue Apr 04, 2017 1:11 pm
Forum: QCAD 'How Do I' Questions
Topic: How do I manage or customize the size of the svg image from inches to meters or mm
Replies: 3
Views: 4277

Re: How do I manage or customize the size of the svg image from inches to meters or mm

Thank you very much for the reply . I have added document.setUnit(RS.Millimeter); and also properties["unit"] = RS.Millimeter; But the output file is still showing the same inches. Is there anything else which has to be added. Below is the code excerpt. var document = new RDocument(storage, spatialI...
by kinoy
Mon Apr 03, 2017 2:15 pm
Forum: QCAD 'How Do I' Questions
Topic: How do I manage or customize the size of the svg image from inches to meters or mm
Replies: 3
Views: 4277

How do I manage or customize the size of the svg image from inches to meters or mm

Through ecma scripting im able to export dwg file to svg file. while exporting the svg file is being converted in default size of inches. example <svg width="151.1032682882168in" height="151.1032682271798in" viewBox="-0.8053099276711326 -14.255580999176 15.11032682882168 15.11032682271798" version="...
by kinoy
Wed Mar 29, 2017 8:13 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: In ecma Scripting How do I check if the layer is empty
Replies: 1
Views: 5578

In ecma Scripting How do I check if the layer is empty

Is there any method to check if the layer contents are empty through ecma script when the layer is present.
by kinoy
Tue Mar 21, 2017 8:28 am
Forum: QCAD 'How Do I' Questions
Topic: How do i remove unnecessary text tags through ecma script
Replies: 5
Views: 4225

Re: How do i remove unnecessary text tags through ecma script

Hi

I have created the ecma file to export the dwg to svg files. but when exporting it is bringing in extra text tags which it wont when exported through the gui.Is there a way to make both files identical.I have attached the files.
by kinoy
Mon Mar 20, 2017 1:17 pm
Forum: QCAD 'How Do I' Questions
Topic: How do i remove unnecessary text tags through ecma script
Replies: 5
Views: 4225

Re: How do i remove unnecessary text tags through ecma script

Thank you for the reply.I am creating the command line tool that converts from dwg to svg. I do not want the text entities based on some condition. this is like one time task for a particular file.
by kinoy
Mon Mar 20, 2017 12:24 pm
Forum: QCAD 'How Do I' Questions
Topic: How do i remove unnecessary text tags through ecma script
Replies: 5
Views: 4225

How do i remove unnecessary text tags through ecma script

Is there a way to remove unnecessary text tags when exporting from dwg to svg file in ecma script.

Go to advanced search