Lots of unkown
 1-15  …  76-95  96-115  116-135  136-155  156-175  …  356-372

Previous
Next
 From:  Michael Gibson
8665.116 In reply to 8665.115 
Hi Tudor, sorry it's hard for me to follow what parts you are just describing and what parts you are asking questions about.

re:
> http://moi3d.com/forum/index.php?webtag=MOI&msg=8665.92
> move + a

It seems to be working ok over here - I push a when picking the target point and it then tracks along the view plane. Can you tell me what steps you are using where you're seeing a problem?


> moi htlm functions if there's a collection of them - aka moi:options; moi:text; moi:Numeric .. so on

There isn't any documentation for these currently, sorry. But if you have questions about a particular one I can tell you about it. For <moi:option> that's like a regular HTML <option> except it gets the inner text to display by a textid="" value that is looked up from the current language's string table.

<moi:Text> is like a <span> tag but it fills in its text by the given textid="" value looked up from the current language's string table.

<moi:NumericInput> is similar to an HTML <input> but for numeric values.

re:
> wishes
> ctrl clone -> to pick last duplicate todo modifications - as an option ? often it comes that i have to change position/size so on
> <...>
> I dont understand it - doesn't respond to ctrl clone/dublicate as well - only to scripts ?

Hmm, yes it's because object dragging doesn't run as a regular command does and so it's missing some of the setup/cleanup type things that happen with regular commands. I'll see about fixing this.


> ~ buggy
> alt + right click - shouldn't repeat last command -> It's supposed to be zoom

Any right click will repeat the last command, (or push the "Done" button if that is visible), it's only an Alt + Right drag that does a zoom, not a click without dragging.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.117 
O hayo !
used same script
I'll give a preview as file
It should act like viewport cplane

- Tudor -

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8665.118 In reply to 8665.117 
Hi Tudor, and when are you pushing the 'a' key to trigger your restrict to the view plane? Your code only handles it for the second point pick.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 8665.119 deleted 28 Jun 2020 by CEMORTAN_TUDOR

Previous
Next
 From:  Cemortan_Tudor
8665.120 
thanks ! I was missing ordering !
- Tudor -
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.121 
I know in config it's possible to turn project orto, is it possible to script toogle without restarting ?
- Tudor -
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8665.122 In reply to 8665.121 
Hi Tudor, do you mean this setting in moi.ini ? :

ProjectOsnapsInOrthoViews=y

That property can be set by script at runtime at moi.drawingAids.objectSnapProjectInOrthoViews so to toggle it try this:

moi.drawingAids.objectSnapProjectInOrthoViews = !moi.drawingAids.objectSnapProjectInOrthoViews;

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.123 In reply to 8665.122 
DisableOnSrfInOrtho
- Tudor -
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8665.124 In reply to 8665.123 
Hi Tudor, the runtime script property for that one is moi.drawingAids.disableOnSrfInOrtho

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.125 
Thanks !
script: /* SurfaceInOrtho */ moi.drawingAids.disableOnSrfInOrtho = !moi.drawingAids.disableOnSrfInOrtho
- Tudor -
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 8665.126 deleted 23 Jul 2020 by CEMORTAN_TUDOR

Previous
Next
 From:  Cemortan_Tudor
8665.127 
Align Hotkeys
w - top
s - bottom
a - left
d - right
q - Vertical Center
e - Horizontal Center
- Tudor -
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.128 
wanna improve the align script !
my question is how do i get pointpicker.basept(or value of pointpicker after alignment without clicking) when I'm pressing second hotkey ( let's say I've aligned top, now I need right side -> not to run script twice )
- Tudor -
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8665.129 In reply to 8665.128 
Hi Tudor, the current point for the pointpicker can be accessed using the .pt property on it.

There is also a .cplane property for getting the construction plane (the grid plane) for the pick, and also .ptframe for getting a coordinate frame with its origin at the current point and the frame's axes in the cplane directions.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.130 
is that if clicked?
anything without clicking ? cuz if I click something, scripts ends it's action
otherworlds I need current pointposition without click

if (!wasAnyHotkey) {
moi.command.setOption( 'AlignMode', 'VerticalLeft' );
factory.setInput( 2, 'VerticalLeft' );
factory.update();
wasAnyHotkey = true;
}
else {
//here i need help !
pointpicker.pt = pointpicker.ptframe.origin ;
factory.commit();
DoAlign();
}

EDITED: 2 Jul 2020 by CEMORTAN_TUDOR

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8665.131 In reply to 8665.130 
Hi Tudor,

re:
> is that if clicked?

No, it's available anytime the pointpicker has been able to get a point, like with mousemove.


> cuz if I click something, scripts ends it's action

Yes, that's how the regular Align command is supposed to work. When you click a point a 'finished' event will be triggered, and this part of the script exits the even loop when it sees that;

code:
	while ( 1 )
	{
		if ( !pointpicker.waitForEvent() )
			return;
			
>>>		if ( pointpicker.event == 'finished' )
>>>			break;
			

If you don't want the script to end when a point is clicked you would want to modify what it does with the 'finished' event, like ignore it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.132 
Thanks Michael

Align Hotkeys
w - top
s - bottom
a - left
d - right
q - Vertical Center
e - Horizontal Center
added
align corners
ex: w+a/w+d/s+a/s+d
- Tudor -
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.133 
based on
https://github.com/arekm/rsdoc-to-sat

Convert DesignSpark Mechanical DSM rsdoc file to sat file which can be loaded into MoI3d
Installation -> python3

drag & drop rsdoc file(s) onto rsdoc-to-sat.py file
.sat file(s) will appear in the same directory as rsdoc file(s).

author went via winreg path, i've changed path inside script to full path ~
inside script change path of sabsat to full path of SabSatConverter.exe (it comes with full DSM installation)
~
sabsat = "C:\\Program Files\\DesignSpark\\DesignSpark Mechanical 4.0\\SabSatConverter.exe"
~
- Tudor -
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Cemortan_Tudor
8665.134 
o hayo !
v4 new future crv.evaluateCurvature
I'm thinking about script for edge loop up to ~ broken curvature on a brep (on curve will be a sharp corner)
if i'm extracting curves, how shall i transfer back to edges ?
- Tudor -
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8665.135 In reply to 8665.134 
Hi Tudor,

re:
> if i'm extracting curves, how shall i transfer back to edges ?

Sorry I'm not sure I understand this - you can call curve evaluate methods on an edge curve just like you can on a "standalone" curve.

One thing to be aware of is that a curvature break between 2 edge curves does not mean anything about the continuity of the surface at that point. For example:



- Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-15  …  56-75  76-95  96-115  116-135  136-155  156-175  176-195  …  356-372