Show messages:
1-5
…
506-525
526-545
546-565
566-585
586-605
606-625
626-639
From: Michael Gibson
Hi stefano,
re:
> Can you provide an import option to copy dxf object name or dxf
> exported layer straight to object list instead of or in addition to styles list…
I'm not sure that there is a concept of an object name in DXF, it is focused on using layers for organizing things.
Do you have an example DXF file that has some object names set in it?
- Michael
From: stefano (LIGHTWAVE)
Hi Michael correct maybe to be precise I would be talking dxf entities or shapes or type 8 layers not dxf objects as dxf is the file format
So when these “shapes” or lines and curves are exported out of Corel to moi for example and I’ve got a coloured layer with some shapes inside at moment they seem to appear in moi styles (all as black)
Can we get these into the objects list as an option and ideally coloured ?
Happy to prepare a test file when on pc…
From: Michael Gibson
Hi stefano, there are 2 ways that colors can be set up in DXF files. An entity can have color as an object property or it can have color "BYLAYER" which means it gets color from the layer the object is assigned to.
MoI itself only has the "BYLAYER" method of setting up color where color comes from the style assignment.
There is not any mechanism in MoI for an object to have a color as a direct object property instead of from the style assignment.
So because of this MoI will only read layer colors from DXF and does not try to do anything with entity level colors.
It might be possible to do something about this like if your DXF files have all entities on a layer set with the same entity color. I would need to see an example file to know if that is the case.
But if it is making a DXF that has different entity colors for things on the same layer then that probably won't be compatible with MoI's "By style" only color setup.
One reason why MoI only supports "by style" colors is it simplifies making a materials list when exporting to a rendering file format, the style list can be directly converted to a render materials list.
For object name, I can probably set up a script that will do that after you do an import, I would need an example file to test with.
- Michael
From: stefano (LIGHTWAVE)
Hi Michael, attached the files...
Created 2 layer file in coreldraw and exported as ACAD2000 (dxf)
coloured the layers using RGB pallette..
1 of moi files shows you straight dxf import
2 moi file shows you sort of result i'd expect or hope for.
Attachments:
TEST_MOI_2LAYER_COLOURED_DXF_X3_ACAD2000.DXF
TEST_MOI_DXF_IMPORT.3dm
TEST_MOI_DXF_IMPORT_MANUALLY_ADJUSTED.3dm
Image Attachments:
layers in corel (using RGB colours).jpg
From: Michael Gibson
Hi stefano, for the names set up a shortcut key with this on it and trigger it after you do the DXF import:
script: /* Copy style name to object name */ var objs = moi.geometryDatabase.getSelectedObjects(); var styles = moi.geometryDatabase.getObjectStyles(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.styleIndex < styles.length ) { obj.name = styles.item( obj.styleIndex ).name; } }
I'll see if the DXF importer can be adjusted to get the color from entity properties if there are no "BYLAYER" entities and all entities on the layer have the same entity color which seems to be how your DXF is structured.
- Michael
From: stefano (LIGHTWAVE)
Hi Michael, thanks a lot for this...will try !
As the import was not getting the result expected e.g. "all black" in styles list
the dxf-export file (from corel) tried to cover both bases. - it was not my intention to also have to colour the layers initially***.
i did it both ways as an experiment to see if it made any import-difference to getting colours on into MOI styles list.
My opinion is:
If the dxf shapes (or entities from corel) was coloured and/or the layer coloured and moi could intelligently pick up would be very flexible.
Or i guess it might need an import tweak with a few options.
** I do think colours by layer is the best approach for larger imports of many dxf entities or doing an import from
a more organised drawing,whereas byentity colour would be the icing on the cake - might be used when there
is less objects to import or less organised drawing.
Food for thought! I'd hesitate a guess MOI DXF importer could cover both bases.
Would you like me to give you any more flavours of dxf export from coreldraw?
I currently have 3 licensed versions X3, X6, X9.
From: Frenchy Pilou (PILOU)
<< basic macro recorder perhaps with a tree view / step by step interface .
There is a record by / for Elephant! By Nkallen
See bottom page!
https://moiscript.weebly.com/install-elephant.html
From: stefano (LIGHTWAVE)
cheers Pilou - well aware of the node editor and will get to it one day soon...
my suggestion for linked commands and macro recorder - was less advanced
and also more minimal... i feel once i start experimenting with node editor which
looks very expansive in its capabilities - wont get much work done ;o)
From: Frenchy Pilou (PILOU)
If i good remember you have nothing to do...
Just launch the recorder
Make anything you want (classical is more reasonable)
You have the record!
Launch the record! :)
No need to know the Elephant in depth! :)
From: stefano (LIGHTWAVE)
i had in mind for node editor to create random surface finishes...
but hey maybe it can do boring stuff as well !
is this (install via github) still valid or easier method on your website ?
https://www.youtube.com/watch?v=jsTGCHa-pZk
From: Michael Gibson
Hi stefano,
re: Colors for CorelDraw DXF import
I've updated the DXF importer for the next v5 release so it will bring in colors when importing your TEST_MOI_2LAYER_COLOURED_DXF_X3_ACAD2000.DXF file.
The way it will work is that if all the entities on a layer are using color-by-entity with the same color then it will use that color for the style in MoI instead of the layer color.
> Would you like me to give you any more flavours of dxf export from coreldraw?
> I currently have 3 licensed versions X3, X6, X9.
No thanks I don't think that's necessary.
Thanks, - Michael
From: Frenchy Pilou (PILOU)
I don't know another method...except these described for the "record" on my site...
For Nomal Install (not the special record) look upper page and scroll following your version...
From: stefano (LIGHTWAVE)
Thanks Michael I think what you’ve done makes sense
and gives two way consistency now >
Coloured a few objects in moi earlier exported as dxf and imported into Corel, the colours worked fine that way.
monseur Pilou je parlez petit francais and maybe it’s a bit easier for me to read…Eitherway Google translate made me a great fan of your website lately, many thanks for that resource !
https://moiscript-weebly-com.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-US&_x_tr_pto=wapp
From: Frenchy Pilou (PILOU)
Super...you will find some free stuffs in any domains! :)
My favorite free for Moi (or any progs) in this 2024 is this one! :)
The 4 first images & animation! Incredible!
https://moiscript.weebly.com/krea.html
From: 大道刀 (SUIYAN)
希望增强N边曲面(NSIDED)目前的NSIDED对一些情况很不理想,例如对 因为修剪、布尔、复杂曲面等原因产生细小的断裂边的情况,通常无法计算或结果错误。merge脚本也无法很好的合并这些边。还有例如图片的情况,产生的面效果不理想。
I hope to enhance N-sided surfaces (NSIDED). Currently, NSIDED is not ideal for some situations, such as situations where small broken edges are generated due to trimming, Boolean, complex surfaces, etc., and it is usually difficult to calculate or the results are incorrect. The merge script also cannot merge these edges well. In addition, as shown in the picture, the resulting surface effect is not ideal.
希望能升级为边界曲面(像ug那样的效果)I hope to upgrade to a boundary surface (with an effect similar to ug)
Image Attachments:
11.jpg
22.jpg
From: pressure (PEER)
Hi Suiyan,
Please post a .3dm file for this case.
- Peer
From: Phiro
Speaking of which, what is the best way to make these surfaces? In this example I have surfaces from filleting, surfaces from sweeping, N-sided surfaces and networking.
We can clearly see that the number of points created are very different but are there methods to avoid and/or others which will be more desirable.
Attachments:
exemples_construction_surfaces.3dm
From: Frenchy Pilou (PILOU)
this one also! ;)
From: Michael Gibson
Hi Phiro,
re:
> We can clearly see that the number of points created are very different but are there methods to avoid
> and/or others which will be more desirable.
Usually it would be best to use edge filleting for this, rather than manual construction.
- Michael
From: christian (CHRI)
another one
Chri
Attachments:
another one.3dm
Image Attachments:
another one.png
Show messages:
1-5
…
506-525
526-545
546-565
566-585
586-605
606-625
626-639