Hi all, I don’t know if anyone else remembers a Cable physics module from VC who was used to do connecting cables.
Specifically, the problem I’m having is this, I’m currently working on the fitting part of a mouthpiece machine, and I need to connect the retractable straps to the body of the mouthpiece, which involves a straight line to an arc, and I’m considering that VC has a Cable module, so I’m ending up using using using this module to do this. After finalizing this, I was ready to proceed with my first step to make the rope able to generate and disappear in a loop, but at this point I ran into trouble, I used the code to generate the cable component ‘201mm’, the code is as follows:
from vcScript import *
def OnReset():
global a
#a.delete()
pass
def OnRun():
global a
#a = part.clone()
a = app.cloneComponent(part)
delay(3)
#a.delete()
app = getApplication()
part = app.findComponent('201mm')
a = None
What’s causing me trouble is the part that makes the string disappear, when I choose to delete it directly using the delete() function, VC reports an error
Unhandled exception occurred:EXCEPTION_ACCESS_VIOLATION (code: 0xC0000005)
0# 0x00007FFB19F23099 in VisualComponents_Revolution
1# 0x00007FFB22322A6E
2# 0x00007FFB22321E71
3# DllCanUnloadNowInternal in clr
4# 0x00007FFB22321D2E
5# DllCanUnloadNowInternal in clr
6# enableCppUnhandledExceptionDispatcher in VisualComponents_Revolution
7# _chkstk in ntdll
8# RtlFindCharInUnicodeString in ntdll
9# KiUserExceptionDispatcher in ntdll
10# rDLinkList::GBegin in Revolution
Then the VC crashes or the Python module fails, I’m not sure what’s going on here, but I really need to know if my idea is feasible or if there’s an alternative to my current solution.
Anyone’s response is welcome, thanks in advance!