Hoi,Ze zijn echt hee

Submitted by Anonymous (not verified) on Fri, 06/09/2017 - 03:54

The code for creating a simple cube in Solidworks with VBA (macros)

Edit X and Y and Z values for customization

Private Sub CommandButton1_Click()

Dim swApp As Object

Dim Part As Object

Dim boolstatus As Boolean

Dim longstatus As Long, longwarnings As Long

Set swApp = Application.SldWorks

Set Part = swApp.ActiveDoc

Dim myModelView As Object

Set myModelView = Part.ActiveView

myModelView.FrameState = swWindowState_e.swWindowMaximized

Tags

创建Excel的自定义命令 - VBA

Submitted by techrev on Sun, 03/05/2017 - 06:05

创建Excel的自定义命令 - VBA  (Chuàngjiàn Excel de zì dìngyì mìnglìng - VBA)

您可以创建用于Excel的自定义命令以执行某些预定操作。这些命令可以直接在单元格内输入,以执行所需的操作(计算)

Nín kěyǐ chuàngjiàn yòng yú Excel de zì dìngyì mìnglìng yǐ zhíxíng mǒu xiē yùdìng cāozuò. Zhèxiē mìnglìng kěyǐ zhíjiē zài dānyuán gé nèi shūrù, yǐ zhíxíng suǒ xū de cāozuò (jìsuàn)

请注意,这些命令是在VBA上生成的,因此请参考我们以前的文章中有关宏和VBA的基本概念

Tags

ARDUINO I2C器件地址扫描器代码

Submitted by techrev on Tue, 02/28/2017 - 10:59

如何找出I2C设备地址 - arduino代码     将I2C SCL引脚连接到Arduino模拟引脚5     将I2C SDA引脚连接到Arduino模拟引脚4     正确连接电源和接地引脚

Rúhé zhǎo chū I2C shèbèi dìzhǐ - arduino dàimǎ     jiāng I2C SCL yǐn jiǎo liánjiē dào Arduino mónǐ yǐn jiǎo 5     jiāng I2C SDA yǐn jiǎo liánjiē dào Arduino mónǐ yǐn jiǎo 4     zhèngquè liánjiē diànyuán hé jiēdì yǐn jiǎo

 

将以下代码上传到Arduino

Jiāng yǐxià dàimǎ shàngchuán dào Arduino