Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoCAD ignore inserted image #176

Open
menshykovAS opened this issue May 28, 2024 · 1 comment
Open

AutoCAD ignore inserted image #176

menshykovAS opened this issue May 28, 2024 · 1 comment

Comments

@menshykovAS
Copy link

Hello, i have a problem when i use :
let imgRef = this.dxf.addImage('map.png', 'map.png',{x:10,y:10,z:0},800,800,1,0)
I also try:
let imgRef = this.dxf.addImage('.\\map.png', 'map.png',{x:10,y:10,z:0},800,800,1,0)
But when i try to open file in Autodesk TrueView get this in autodesk log:
image
Please help

@menshykovAS menshykovAS changed the title AutoCAD ignore iserted image AutoCAD ignore inserted image May 28, 2024
@alessiocancian
Copy link

Try with classVersion: 0, it worked for me.

dxf.addImage('map.png', 'map', { x: 10, y: 10, z: 0 }, 800, 800, 1, 0, {
   classVersion: 0,
})

I don't know what it means but I found it in a dxf file with a working image and it turned out that adding it to the file exported with this library fixed the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants